diff options
author | Juergen Daubert <jue@jue.li> | 2008-03-12 16:55:00 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2008-03-12 16:55:00 +0100 |
commit | 9dc43ca8bf00e9c0f69e54ffada9e5f124d7f2cf (patch) | |
tree | a5c8b5465714c5d4c5a006e85483e89174870544 /rsync | |
parent | 3008aff93371dd8234b2509d4f9732d2622c8f62 (diff) | |
download | core-9dc43ca8bf00e9c0f69e54ffada9e5f124d7f2cf.tar.gz core-9dc43ca8bf00e9c0f69e54ffada9e5f124d7f2cf.tar.xz |
rsync: removed old patch
Diffstat (limited to 'rsync')
-rw-r--r-- | rsync/rsync-2.6.9-fname-obo.diff | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/rsync/rsync-2.6.9-fname-obo.diff b/rsync/rsync-2.6.9-fname-obo.diff deleted file mode 100644 index 2fa01130..00000000 --- a/rsync/rsync-2.6.9-fname-obo.diff +++ /dev/null @@ -1,60 +0,0 @@ ---- rsync-2.6.9.orig/sender.c 2006-09-20 03:53:32.000000000 +0200 -+++ rsync-2.6.9/sender.c 2007-07-25 15:33:05.000000000 +0200 -@@ -123,6 +123,7 @@ - char fname[MAXPATHLEN]; - struct file_struct *file; - unsigned int offset; -+ size_t l = 0; - - if (ndx < 0 || ndx >= the_file_list->count) - return; -@@ -133,6 +134,20 @@ - file->dir.root, "/", NULL); - } else - offset = 0; -+ -+ l = offset + 1; -+ if (file) { -+ if (file->dirname) -+ l += strlen(file->dirname); -+ if (file->basename) -+ l += strlen(file->basename); -+ } -+ -+ if (l >= sizeof(fname)) { -+ rprintf(FERROR, "Overlong pathname\n"); -+ exit_cleanup(RERR_FILESELECT); -+ } -+ - f_name(file, fname + offset); - if (remove_source_files) { - if (do_unlink(fname) == 0) { -@@ -224,6 +239,7 @@ - enum logcode log_code = log_before_transfer ? FLOG : FINFO; - int f_xfer = write_batch < 0 ? batch_fd : f_out; - int i, j; -+ size_t l = 0; - - if (verbose > 2) - rprintf(FINFO, "send_files starting\n"); -@@ -259,6 +275,20 @@ - fname[offset++] = '/'; - } else - offset = 0; -+ -+ l = offset + 1; -+ if (file) { -+ if (file->dirname) -+ l += strlen(file->dirname); -+ if (file->basename) -+ l += strlen(file->basename); -+ } -+ -+ if (l >= sizeof(fname)) { -+ rprintf(FERROR, "Overlong pathname\n"); -+ exit_cleanup(RERR_FILESELECT); -+ } -+ - fname2 = f_name(file, fname + offset); - - if (verbose > 2) |