]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mountd.c
See Changelog
[nfs-utils.git] / utils / mountd / mountd.c
index 73f9f66c074d3328309920cc63affe24ed8103a4..971e4f4e2be8ca774328aed24c921bdea4f7edcc 100644 (file)
@@ -31,7 +31,7 @@ static struct nfs_fh_len *get_rootfh(struct svc_req *, dirpath *, int *, int v3)
 static struct option longopts[] =
 {
        { "foreground", 0, 0, 'F' },
-       { "descriptors", 0, 0, 'o' },
+       { "descriptors", 1, 0, 'o' },
        { "debug", 1, 0, 'd' },
        { "help", 0, 0, 'h' },
        { "exports-file", 1, 0, 'f' },
@@ -399,7 +399,7 @@ main(int argc, char **argv)
 
        /* Parse the command line options and arguments. */
        opterr = 0;
-       while ((c = getopt_long(argc, argv, "o:Fd:f:p:P:hN:V:v", longopts, NULL)) != EOF)
+       while ((c = getopt_long(argc, argv, "on:Fd:f:p:P:hN:V:v", longopts, NULL)) != EOF)
                switch (c) {
                case 'o':
                        descriptors = atoi(optarg);