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:
2c2898a
)
Changed the new code in delete_one() so that some compilers
author
Wayne Davison
<wayned@samba.org>
Sat, 12 Jun 2004 21:30:07 +0000
(21:30 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 12 Jun 2004 21:30:07 +0000
(21:30 +0000)
don't complain about returning a value from a void function.
receiver.c
patch
|
blob
|
blame
|
history
diff --git
a/receiver.c
b/receiver.c
index
f39a9e5
..
cd521a1
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-60,8
+60,10
@@
static void delete_one(char *fn, int is_dir)
}
} else {
if (do_rmdir(fn) != 0) {
- if (errno == ENOTDIR && keep_dirlinks)
- return delete_one(fn, 0);
+ if (errno == ENOTDIR && keep_dirlinks) {
+ delete_one(fn, 0);
+ return;
+ }
if (errno != ENOTEMPTY && errno != EEXIST) {
rsyserr(FERROR, errno,
"delete_one: rmdir %s failed",