summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sgunderson@bigfoot.com>2006-10-24 16:10:44 +1000
committerNeil Brown <neilb@suse.de>2006-10-24 16:10:44 +1000
commitc52c3bae6e24afb631430161d6bcd318b4467600 (patch)
treeca4cbcfe6461b4abe25a92c2cfe9ba5341e7d5a2 /utils
parent95aa4adaec0f6543a5fb9db112953d8ec9a100ff (diff)
downloadnfs-utils-c52c3bae6e24afb631430161d6bcd318b4467600.tar.gz
nfs-utils-c52c3bae6e24afb631430161d6bcd318b4467600.tar.xz
nfs-utils-c52c3bae6e24afb631430161d6bcd318b4467600.zip
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.
Diffstat (limited to 'utils')
-rw-r--r--utils/mountd/mountd.c2
1 files changed, 1 insertions, 1 deletions
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);