Ignore option -n (sr #110191)

This commit is contained in:
wbaumann 2020-02-07 10:20:41 +00:00
parent eec9c5b5c9
commit 533efb2e8a
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,10 @@
ChangeLog for davfs2
--------------------

2020-02-07 Werner Baumann (werner.baumann@onlinehome.de)
* mount_davfs.c, parse_commandline:
Ignore option -n (sr #110191).

2019-12-08 Werner Baumann (werner.baumann@onlinehome.de)
* umount_davfs.c:
Adjust message.

View File

@ -847,8 +847,9 @@ parse_commandline(dav_args *args, int argc, char *argv[])
}
strcpy(p, argv[argc - 1]);

char *short_options = "vwVho:";
char *short_options = "nvwVho:";
static const struct option options[] = {
{"no-mtab", no_argument, NULL, 'n'},
{"version", no_argument, NULL, 'V'},
{"help", no_argument, NULL, 'h'},
{"option", required_argument, NULL, 'o'},
@ -872,6 +873,7 @@ parse_commandline(dav_args *args, int argc, char *argv[])
case 'o':
get_options(args, optarg);
break;
case 'n':
case 'v':
case 'w':
case '?':