From: Fredrik Tolf Date: Sat, 5 Mar 2011 11:11:16 +0000 (+0100) Subject: Fixed argument parsing in errlogger and multifscgi. X-Git-Tag: 0.7~1^2~5 X-Git-Url: http://www.dolda2000.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=121587a56e50fd4cce884d9e61e8796436b150a4;hp=e8b7861ab2c1c92b79cdbf7a0acecfd6631c2934;p=ashd.git Fixed argument parsing in errlogger and multifscgi. --- diff --git a/src/errlogger.c b/src/errlogger.c index 9e7692c..bc0d0e5 100644 --- a/src/errlogger.c +++ b/src/errlogger.c @@ -58,7 +58,7 @@ int main(int argc, char **argv) name = NULL; prio = LOG_WARNING; fac = LOG_DAEMON; - while((c = getopt(argc, argv, "hn:p:f:")) >= 0) { + while((c = getopt(argc, argv, "+hn:p:f:")) >= 0) { switch(c) { case 'n': name = optarg; diff --git a/src/multifscgi.c b/src/multifscgi.c index 69448c5..6cc232f 100644 --- a/src/multifscgi.c +++ b/src/multifscgi.c @@ -142,7 +142,7 @@ int main(int argc, char **argv) { int c; - while((c = getopt(argc, argv, "h")) >= 0) { + while((c = getopt(argc, argv, "+h")) >= 0) { switch(c) { case 'h': usage(stdout);