Fixed collecting the label argument in mkntfs

The label argument could be wrongly interpreted, depending on the syntax
use to state the options.
This commit is contained in:
Jean-Pierre André 2018-08-22 09:46:30 +02:00
parent 2514ce6a42
commit e87c853551

View File

@ -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");