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
(from parent 1:
373ef16
)
Made delete_one() handle a failed rmdir on a symlink when
author
Wayne Davison
<wayned@samba.org>
Fri, 11 Jun 2004 07:40:48 +0000
(07:40 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 11 Jun 2004 07:40:48 +0000
(07:40 +0000)
--keep-dirlinks was specified.
receiver.c
patch
|
blob
|
blame
|
history
diff --git
a/receiver.c
b/receiver.c
index
5d19148
..
f39a9e5
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-30,6
+30,7
@@
extern struct stats stats;
extern int dry_run;
extern int am_server;
extern int relative_paths;
+extern int keep_dirlinks;
extern int preserve_hard_links;
extern int preserve_perms;
extern int cvs_exclude;
@@
-59,6
+60,8
@@
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 != ENOTEMPTY && errno != EEXIST) {
rsyserr(FERROR, errno,
"delete_one: rmdir %s failed",