mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-04-25 00:29:04 -04:00
Removing now-redundant path-size check from send_if_directory().
This commit is contained in:
6
flist.c
6
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);
|
||||
|
||||
Reference in New Issue
Block a user