From c43c66125e8fd35896a358ccce9687ebcfe82dc5 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 27 Dec 2008 11:07:57 -0800 Subject: [PATCH] Allow opendir() in send_directory() to fail with ENOENT. --- flist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flist.c b/flist.c index 149adf17..e86b57a2 100644 --- a/flist.c +++ b/flist.c @@ -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; -- 2.34.1