Allow opendir() in send_directory() to fail with ENOENT.

This commit is contained in:
Wayne Davison committed 2008-12-27 11:09:53 -08:00
1 parent 8b7a752024
commit c43c66125e
1 file changed
+2
+2
View File
@@ -1639,6 +1639,8 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len,
assert(flist != NULL);
if (!(d = opendir(fbuf))) {
if (errno == ENOENT)
return;
io_error |= IOERR_GENERAL;
rsyserr(FERROR_XFER, errno, "opendir %s failed", full_fname(fbuf));
return;