aboutsummaryrefslogtreecommitdiffstats
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2010-03-31 14:56:52 -0700
committerWayne Davison <wayned@samba.org>2010-03-31 14:57:01 -0700
commit554dc122f271fc361b963067fa3d80084fd7ca91 (patch)
tree0a565c8ee5c59b6060276f5032f229305392a27b /flist.c
parent8c934eba05c38f2e8d04e524e5e077844f23698d (diff)
downloadandroid_external_rsync-554dc122f271fc361b963067fa3d80084fd7ca91.tar.gz
android_external_rsync-554dc122f271fc361b963067fa3d80084fd7ca91.tar.bz2
android_external_rsync-554dc122f271fc361b963067fa3d80084fd7ca91.zip
Removing now-redundant path-size check from send_if_directory().
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/flist.c b/flist.c
index 10fdc4cf..ad6b5bf0 100644
--- a/flist.c
+++ b/flist.c
@@ -1564,12 +1564,6 @@ static void send_if_directory(int f, struct file_list *flist,
unsigned int len = strlen(fbuf);
if (len > 1 && fbuf[len-1] == '/')
fbuf[--len] = '\0';
- if (len >= MAXPATHLEN - 1) {
- io_error |= IOERR_GENERAL;
- rprintf(FERROR_XFER, "skipping long-named directory: %s\n",
- full_fname(fbuf));
- return;
- }
save_filters = push_local_filters(fbuf, len);
send_directory(f, flist, fbuf, len, flags);
pop_local_filters(save_filters);