From: Steinar H. Gunderson Date: Tue, 24 Oct 2006 06:10:44 +0000 (+1000) Subject: Fix -n option to mountd X-Git-Tag: nfs-utils-1-0-11~40 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=c52c3bae6e24afb631430161d6bcd318b4467600 Fix -n option to mountd The getopt_long() option string in mountd was having a spurious colon after the 'n', leading to the short form of --no-tcp not being usable (expecting a parameter, contrary to the long form and the documentation). Fix. --- diff --git a/ChangeLog b/ChangeLog index 2331086..1a9e642 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Author: Steinar H. Gunderson +Date: Wed Sep 13 22:23:23 CEST 2006 + + Fix -n option to mountd + + The getopt_long() option string in mountd was having a spurious + colon after the 'n', leading to the short form of --no-tcp not + being usable (expecting a parameter, contrary to the long form + and the documentation). Fix. + Author: Steinar H. Gunderson Date: Wed Sep 13 22:19:39 CEST 2006 diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index c1d18d4..f40d367 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -558,7 +558,7 @@ main(int argc, char **argv) /* Parse the command line options and arguments. */ opterr = 0; - while ((c = getopt_long(argc, argv, "o:n:Fd:f:p:P:hH:N:V:vs:t:", longopts, NULL)) != EOF) + while ((c = getopt_long(argc, argv, "o:nFd:f:p:P:hH:N:V:vs:t:", longopts, NULL)) != EOF) switch (c) { case 'o': descriptors = atoi(optarg);