diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-26 14:39:18 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-26 14:39:18 +0000 |
commit | 49d11b78c14e6d039f49ea5615bb33148f898bd0 (patch) | |
tree | 16ea50337244c813ac5370ebaba340106cddb3ce /flist.c | |
parent | bb0f7089fea7318a48b0fc3a4b052330a9fabcc3 (diff) | |
download | rsync-49d11b78c14e6d039f49ea5615bb33148f898bd0.tar.gz rsync-49d11b78c14e6d039f49ea5615bb33148f898bd0.tar.bz2 rsync-49d11b78c14e6d039f49ea5615bb33148f898bd0.zip |
fixed a bug in the handling of very long filenames (longer than 255
chars) where two neighboring filenames share more than 255 characters
at the start of their names.
Diffstat (limited to 'flist.c')
-rw-r--r-- | flist.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -163,7 +163,7 @@ void send_file_entry(struct file_struct *file,int f,unsigned base_flags) if (file->gid == last_gid) flags |= SAME_GID; if (file->modtime == last_time) flags |= SAME_TIME; - for (l1=0;lastname[l1] && fname[l1] == lastname[l1];l1++) ; + for (l1=0;lastname[l1] && (fname[l1] == lastname[l1]) && (l1 < 255);l1++) ; l2 = strlen(fname) - l1; if (l1 > 0) flags |= SAME_NAME; |