aboutsummaryrefslogtreecommitdiffstats
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-12-27 11:07:57 -0800
committerWayne Davison <wayned@samba.org>2008-12-27 11:09:53 -0800
commitc43c66125e8fd35896a358ccce9687ebcfe82dc5 (patch)
tree7981b3c8ffe20da299d92ee9ed552646c225831f /flist.c
parent8b7a752024f34a220ef340d9b466ec871e6cbc0a (diff)
downloadandroid_external_rsync-c43c66125e8fd35896a358ccce9687ebcfe82dc5.tar.gz
android_external_rsync-c43c66125e8fd35896a358ccce9687ebcfe82dc5.tar.bz2
android_external_rsync-c43c66125e8fd35896a358ccce9687ebcfe82dc5.zip
Allow opendir() in send_directory() to fail with ENOENT.
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c2
1 files changed, 2 insertions, 0 deletions
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;