X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/a54a2c4d2d84418b6658697c7926321278e1e34f..041359b073df4fe698ec80f2e0699a2585b2337b:/copy-devices.diff diff --git a/copy-devices.diff b/copy-devices.diff index cf8b145..45a237c 100644 --- a/copy-devices.diff +++ b/copy-devices.diff @@ -4,12 +4,13 @@ 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 @@ -33,6 +33,7 @@ extern int preserve_xattrs; extern int preserve_perms; extern int preserve_executability; @@ -73,7 +76,7 @@ To use this patch, run these commands for a successful build: extern int am_root; extern int am_server; extern int am_sender; -@@ -219,7 +220,8 @@ int read_ndx_and_attrs(int f_in, int *if +@@ -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; @@ -83,9 +86,10 @@ To use this patch, run these commands for a successful build: rprintf(FERROR, "received request to transfer non-regular file: %d [%s]\n", ndx, who_am_i()); ---- old/sender.c -+++ new/sender.c -@@ -314,6 +314,20 @@ void send_files(int f_in, int f_out) +diff --git a/sender.c b/sender.c +--- a/sender.c ++++ b/sender.c +@@ -336,6 +336,20 @@ void send_files(int f_in, int f_out) exit_cleanup(RERR_PROTOCOL); }