X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/72e5645e95d7fd7edd0c4ab59f9812b9d6124521..refs/heads/master:/copy-devices.diff diff --git a/copy-devices.diff b/copy-devices.diff index 891ecc1..62635ec 100644 --- a/copy-devices.diff +++ b/copy-devices.diff @@ -8,7 +8,7 @@ To use this patch, run these commands for a successful build: ./configure (optional if already run) make -based-on: 3b8f8192227b14e708bf535072485e50f4362270 +based-on: a01e3b490eb36ccf9e704840e1b6683dab867550 diff --git a/generator.c b/generator.c --- a/generator.c +++ b/generator.c @@ -20,7 +20,7 @@ diff --git a/generator.c b/generator.c extern int preserve_specials; extern int preserve_hard_links; extern int preserve_executability; -@@ -1496,7 +1497,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, +@@ -1494,7 +1495,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, goto cleanup; } @@ -56,7 +56,7 @@ diff --git a/options.c b/options.c {"specials", 0, POPT_ARG_VAL, &preserve_specials, 1, 0, 0 }, {"no-specials", 0, POPT_ARG_VAL, &preserve_specials, 0, 0, 0 }, {"links", 'l', POPT_ARG_VAL, &preserve_links, 1, 0, 0 }, -@@ -2627,6 +2630,9 @@ void server_options(char **args, int *argc_p) +@@ -2661,6 +2664,9 @@ void server_options(char **args, int *argc_p) else if (remove_source_files) args[ac++] = "--remove-sent-files"; @@ -77,7 +77,7 @@ diff --git a/rsync.c b/rsync.c extern int am_root; extern int am_server; extern int am_sender; -@@ -380,7 +381,8 @@ int read_ndx_and_attrs(int f_in, int f_out, int *iflag_ptr, uchar *type_ptr, +@@ -397,7 +398,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; @@ -90,8 +90,8 @@ diff --git a/rsync.c b/rsync.c 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); +@@ -341,6 +341,20 @@ void send_files(int f_in, int f_out) + exit_cleanup(RERR_FILEIO); } + /* On Matt's computer, st_size is falsely 0 for most devices.