From 7c0360c4c8091bd397277ee43ef6232ab0aa364f Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Thu, 3 Jan 2013 00:49:11 +0000 Subject: [PATCH] Remove bogus '-' from getopt(3) string hit when porting daemon(8) to GNU/Linux *duck*. MFC after: 1 week --- usr.sbin/daemon/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c index 7c8e9feeba71..b012c882e42a 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -62,7 +62,7 @@ main(int argc, char *argv[]) nochdir = noclose = 1; restart = 0; pidfile = user = NULL; - while ((ch = getopt(argc, argv, "-cfp:ru:")) != -1) { + while ((ch = getopt(argc, argv, "cfp:ru:")) != -1) { switch (ch) { case 'c': nochdir = 0;