git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b7a752
)
Allow opendir() in send_directory() to fail with ENOENT.
author
Wayne Davison
<wayned@samba.org>
Sat, 27 Dec 2008 19:07:57 +0000
(11:07 -0800)
committer
Wayne Davison
<wayned@samba.org>
Sat, 27 Dec 2008 19:09:53 +0000
(11:09 -0800)
flist.c
patch
|
blob
|
history
diff --git
a/flist.c
b/flist.c
index 149adf17a3fc400a852d77e1d31207b41377b5d2..e86b57a2cccf10b7a162857a0ab38dd509f44256 100644
(file)
--- 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;