DragonFly BSD
DragonFly bugs List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[patch] /usr/sbin/daemon treats -p as an invalid option


From: Mitja Horvat <pinkfluid@xxxxxxxxx>
Date: Thu, 5 Aug 2010 16:16:25 +0200

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();


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]