mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-13 20:06:22 -04:00
moved usage mesage after am_daemon test (I'd broken daemon mode)
This commit is contained in:
10
main.c
10
main.c
@@ -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