aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-22 20:28:17 +0000
committerWayne Davison <wayned@samba.org>2005-01-22 20:28:17 +0000
commitf8b3c05311b591e45fce024665335b5d4787ebe4 (patch)
tree66ef73447b6a4754d77b1f1e0efdd84a9ca83ce0 /main.c
parent353f272434cb7e2a9007ecdc5a9b234fe0f66325 (diff)
downloadandroid_external_rsync-f8b3c05311b591e45fce024665335b5d4787ebe4.tar.gz
android_external_rsync-f8b3c05311b591e45fce024665335b5d4787ebe4.tar.bz2
android_external_rsync-f8b3c05311b591e45fce024665335b5d4787ebe4.zip
Mustn't override a user-specified list_only value.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index b090f668..306673a5 100644
--- a/main.c
+++ b/main.c
@@ -730,7 +730,7 @@ int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[])
exit_cleanup(status);
}
- if (argc == 0)
+ if (argc == 0 && !list_only)
list_only = 1;
if (!read_batch)
@@ -962,9 +962,8 @@ static int start_client(int argc, char *argv[])
}
/* ... or no dest at all */
- if (!am_sender && argc == 0) {
+ if (!am_sender && argc == 0 && !list_only)
list_only = 1;
- }
pid = do_cmd(shell_cmd,shell_machine,shell_user,shell_path,
&f_in,&f_out);