[patch] /usr/sbin/daemon treats -p as an invalid option
Mitja Horvat
pinkfluid at gmail.com
Thu Aug 5 07:17:21 PDT 2010
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();
More information about the Bugs
mailing list