mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-17 11:32:01 -04:00
moved usage mesage after am_daemon test (I'd broken daemon mode)
This commit is contained in:
1 parent
6c29af2251
commit
08ac228fbd
1 file changed
+5
-5
@@ -494,11 +494,6 @@ int main(int argc,char *argv[])
|
||||
argv += optind;
|
||||
optind = 0;
|
||||
|
||||
if (argc < 1) {
|
||||
usage(FERROR);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
signal(SIGCHLD,SIG_IGN);
|
||||
signal(SIGINT,SIGNAL_CAST sig_int);
|
||||
signal(SIGPIPE,SIGNAL_CAST sig_int);
|
||||
@@ -508,6 +503,11 @@ int main(int argc,char *argv[])
|
||||
return daemon_main();
|
||||
}
|
||||
|
||||
if (argc < 1) {
|
||||
usage(FERROR);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (dry_run)
|
||||
verbose = MAX(verbose,1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user