Commit 08ac228f authored by Andrew Tridgell's avatar Andrew Tridgell

moved usage mesage after am_daemon test (I'd broken daemon mode)

parent 6c29af22
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment