Removing now-redundant path-size check from send_if_directory().
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 10fdc4c..ad6b5bf 100644 (file)
--- 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);