aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-23 07:27:01 +0000
committerWayne Davison <wayned@samba.org>2005-01-23 07:27:01 +0000
commitb98f040ef25bc692ad3864244eed620611f79048 (patch)
tree0fa986b612b0c2ffd91cb0f6517a94e5e38a6d39 /main.c
parente57211c544a0171e54cb6e1ccf30355c060a68a3 (diff)
downloadandroid_external_rsync-b98f040ef25bc692ad3864244eed620611f79048.tar.gz
android_external_rsync-b98f040ef25bc692ad3864244eed620611f79048.tar.bz2
android_external_rsync-b98f040ef25bc692ad3864244eed620611f79048.zip
Go back to requiring -r for deletes to happen.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index be8ae39f..086de305 100644
--- a/main.c
+++ b/main.c
@@ -45,7 +45,6 @@ extern int log_got_error;
extern int module_id;
extern int orig_umask;
extern int copy_links;
-extern int keep_dirs;
extern int keep_dirlinks;
extern int preserve_hard_links;
extern int protocol_version;
@@ -477,7 +476,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
if (delete_before) {
/* I moved this here from recv_files() to prevent a race condition */
- if (keep_dirs && !local_name && flist->count > 0)
+ if (recurse && !local_name && flist->count > 0)
delete_files(flist);
}