From e87c85355162298caf794033c42b7369f23d664f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Wed, 22 Aug 2018 09:46:30 +0200 Subject: [PATCH] Fixed collecting the label argument in mkntfs The label argument could be wrongly interpreted, depending on the syntax use to state the options. --- ntfsprogs/mkntfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfsprogs/mkntfs.c b/ntfsprogs/mkntfs.c index 7d03c51d..3e127a3d 100644 --- a/ntfsprogs/mkntfs.c +++ b/ntfsprogs/mkntfs.c @@ -670,7 +670,7 @@ static int mkntfs_parse_options(int argc, char *argv[], struct mkntfs_options *o break; case 'L': if (!opts2->label) { - opts2->label = argv[optind-1]; + opts2->label = optarg; } else { ntfs_log_error("You may only specify the label " "once.\n");