summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@debian.org>2018-11-28 04:26:16 +0000
committerDmitry Bogatov <KAction@debian.org>2018-11-28 04:26:16 +0000
commita6ea7bf99fe51781e03d990336652cd09c0ebbc0 (patch)
treea6adfa593f30fefe90afea1062a68155976407a8
parent43c894432586fa43a3c0c7e320af30bd11c04b07 (diff)
Fix optstring in unixserver.carchive/debian/1.0-1
Both manual page and getopt loop mention '-d' and '-D' command line option, but letters 'd' and 'D' was missing from getopt string, causing `unixserver' to consider `-d' and `-D' options invalid. Bug-Debian: 778630 Forwarded: yes Last-Update: 2018-11-28 Gbp-Pq: Name fix-getopt-string.patch
-rw-r--r--unixserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unixserver.c b/unixserver.c
index 968b433..dc3b1d5 100644
--- a/unixserver.c
+++ b/unixserver.c
@@ -128,7 +128,7 @@ void parse_options(int argc, char* argv[])
{
int opt;
argv0 = argv[0];
- while((opt = getopt(argc, argv, "qQvc:u:g:Ub:B:m:o:r:Op:")) != EOF) {
+ while((opt = getopt(argc, argv, "dDqQvc:u:g:Ub:B:m:o:r:Op:")) != EOF) {
switch(opt) {
case 'q': opt_quiet = 1; opt_verbose = 0; break;
case 'Q': opt_quiet = 0; break;