mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-27 16:28:34 -05:00
In delete_files(), handle new DEL_NO_RECURSE flag (and use
renamed DEL_FORCE_RECURSE flag.
This commit is contained in:
3
rsync.c
3
rsync.c
@@ -76,7 +76,8 @@ int delete_file(char *fname, int flags)
|
||||
return -1;
|
||||
}
|
||||
|
||||
zap_dir = flags & DEL_RECURSE || (force_delete && recurse);
|
||||
zap_dir = (flags & DEL_FORCE_RECURSE || (force_delete && recurse))
|
||||
&& !(flags & DEL_NO_RECURSE);
|
||||
if (dry_run && zap_dir)
|
||||
errno = ENOTEMPTY;
|
||||
else if (do_rmdir(fname) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user