Package: ucspi-unix / 1.0-1

fix-getopt-string.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix optstring in unixserver.c
 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.
Author: Dmitry Bogatov <KAction@debian.org>
Bug-Debian: 778630
Forwarded: yes
Last-Update: 2018-11-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: ucspi-unix/unixserver.c
===================================================================
--- ucspi-unix.orig/unixserver.c
+++ ucspi-unix/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;