Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2013 00:49:12 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244986 - head/usr.sbin/daemon
Message-ID:  <201301030049.r030nCYm097999@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Thu Jan  3 00:49:11 2013
New Revision: 244986
URL: http://svnweb.freebsd.org/changeset/base/244986

Log:
  Remove bogus '-' from getopt(3) string hit when porting daemon(8) to
  GNU/Linux *duck*.
  
  MFC after:	1 week

Modified:
  head/usr.sbin/daemon/daemon.c

Modified: head/usr.sbin/daemon/daemon.c
==============================================================================
--- head/usr.sbin/daemon/daemon.c	Wed Jan  2 23:29:54 2013	(r244985)
+++ head/usr.sbin/daemon/daemon.c	Thu Jan  3 00:49:11 2013	(r244986)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301030049.r030nCYm097999>