diff options
| author | Wayne Davison <wayned@samba.org> | 2010-03-31 14:56:52 -0700 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2010-03-31 15:00:53 -0700 |
| commit | fe2c582af879a633c346d0c36da3ca79f5d7ff3b (patch) | |
| tree | 2f56a15391607faed816b87e906bf9d966a43807 | |
| parent | 2ecd8b7cd27f692d2832dc6908ca6a6fe1d310fe (diff) | |
| download | android_external_rsync-fe2c582af879a633c346d0c36da3ca79f5d7ff3b.tar.gz android_external_rsync-fe2c582af879a633c346d0c36da3ca79f5d7ff3b.tar.bz2 android_external_rsync-fe2c582af879a633c346d0c36da3ca79f5d7ff3b.zip | |
Removing now-redundant path-size check from send_if_directory().
| -rw-r--r-- | flist.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1476,12 +1476,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); |
