Skip to content

Commit

Permalink
Fixed collecting the label argument in mkntfs
Browse files Browse the repository at this point in the history
The label argument could be wrongly interpreted, depending on the syntax
use to state the options.
  • Loading branch information
Jean-Pierre André committed Aug 22, 2018
1 parent 2514ce6 commit e87c853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntfsprogs/mkntfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e87c853

Please sign in to comment.