Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50e82a
)
One place that was testing errno for ENOTEMPTY was failing to
author
Wayne Davison
<wayned@samba.org>
Thu, 19 May 2005 00:00:28 +0000
(
00:00
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 19 May 2005 00:00:28 +0000
(
00:00
+0000)
also test for EEXIST (which is returned by some OSes).
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
deefff4
..
e46da84
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-186,7
+186,7
@@
static int delete_item(char *fname, int mode, int flags)
if (do_rmdir(fname) == 0) {
if (!(flags & DEL_TERSE))
log_delete(fname, mode);
- } else if (errno != ENOTEMPTY && errno != ENOENT) {
+ } else if (errno != ENOTEMPTY && errno != E
EXIST && errno != E
NOENT) {
rsyserr(FERROR, errno, "delete_file: rmdir %s failed",
full_fname(fname));
return -1;