X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/f2863bc00ee660400c314a756d19ce5455dce87d..1a9f1a535d276b0454f7a569a94d1fc28905f4b0:/copy-devices.diff diff --git a/copy-devices.diff b/copy-devices.diff index be1a45f..45a237c 100644 --- a/copy-devices.diff +++ b/copy-devices.diff @@ -4,10 +4,10 @@ the data inside a device instead of duplicating the device node. To use this patch, run these commands for a successful build: patch -p1 MAX_SERVER_ARGS) { /* Not possible... */ + rprintf(FERROR, "argc overflow in server_options().\n"); + exit_cleanup(RERR_MALLOC); diff --git a/rsync.c b/rsync.c --- a/rsync.c +++ b/rsync.c -@@ -34,6 +34,7 @@ extern int preserve_xattrs; +@@ -33,6 +33,7 @@ extern int preserve_xattrs; extern int preserve_perms; extern int preserve_executability; extern int preserve_times; @@ -76,7 +76,7 @@ diff --git a/rsync.c b/rsync.c extern int am_root; extern int am_server; extern int am_sender; -@@ -290,7 +291,8 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr, +@@ -380,7 +381,8 @@ int read_ndx_and_attrs(int f_in, int f_out, int *iflag_ptr, uchar *type_ptr, if (iflags & ITEM_TRANSFER) { int i = ndx - cur_flist->ndx_start; @@ -89,7 +89,7 @@ diff --git a/rsync.c b/rsync.c diff --git a/sender.c b/sender.c --- a/sender.c +++ b/sender.c -@@ -315,6 +315,20 @@ void send_files(int f_in, int f_out) +@@ -336,6 +336,20 @@ void send_files(int f_in, int f_out) exit_cleanup(RERR_PROTOCOL); }