X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/cc3e685d09b2095099fc396157d19172ab3ef7c4..041359b073df4fe698ec80f2e0699a2585b2337b:/copy-devices.diff diff --git a/copy-devices.diff b/copy-devices.diff index c237aab..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; -@@ -289,7 +290,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 -@@ -314,6 +314,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); }