From 39ac864f7570f7927d45b28f8902d6d0c3c8e4aa Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 15 Apr 2007 23:52:01 +0000 Subject: [PATCH] handle the -v (verbose) command line option because mount(8) can pass it --- src/ntfs-3g.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 0ec870ed..c18b9a11 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -1917,10 +1917,11 @@ static int parse_options(int argc, char *argv[]) { int c; - static const char *sopt = "-o:h"; + static const char *sopt = "-o:hv"; static const struct option lopt[] = { { "options", required_argument, NULL, 'o' }, { "help", no_argument, NULL, 'h' }, + { "verbose", no_argument, NULL, 'v' }, { NULL, 0, NULL, 0 } }; @@ -1965,6 +1966,12 @@ static int parse_options(int argc, char *argv[]) case 'h': usage(); exit(9); + case 'v': + /* + * We must handle the 'verbose' option even if + * we don't use it because mount(8) passes it. + */ + break; default: ntfs_log_error("%s: Unknown option '%s'.\n", EXEC_NAME, argv[optind - 1]);