Hi, I found a little typo in /usr/sbin/daemon source code, which causes the -p option to be treated as an invalid argument (it's just a missing break statement).
Please see attached patch. Regards, Mitja Horvat
diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c index 647a7dd..c33cca6 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -60,6 +60,7 @@ main(int argc, char *argv[]) break; case 'p': pidfile = optarg; + break; case '?': default: usage();
