From 12d5df2b3cfb6aa602a3ccdb252de202863e1956 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 19 Apr 2007 16:43:30 +0000 Subject: [PATCH] Unbreak rev 1.7's getopt usage. The -f switch does not take an argument. The stray ':' was from the defunct '-g' group arg. --- 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 4fca144b498b..540ebf35df7e 100644 --- a/usr.sbin/daemon/daemon.c +++ b/usr.sbin/daemon/daemon.c @@ -55,7 +55,7 @@ main(int argc, char *argv[]) nochdir = noclose = 1; pidfile = user = NULL; - while ((ch = getopt(argc, argv, "-cf:p:u:")) != -1) { + while ((ch = getopt(argc, argv, "-cfp:u:")) != -1) { switch (ch) { case 'c': nochdir = 0;