mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-12-03 23:13:39 +08:00
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:
parent
2514ce6a42
commit
e87c853551
@ -670,7 +670,7 @@ static int mkntfs_parse_options(int argc, char *argv[], struct mkntfs_options *o
|
|||||||
break;
|
break;
|
||||||
case 'L':
|
case 'L':
|
||||||
if (!opts2->label) {
|
if (!opts2->label) {
|
||||||
opts2->label = argv[optind-1];
|
opts2->label = optarg;
|
||||||
} else {
|
} else {
|
||||||
ntfs_log_error("You may only specify the label "
|
ntfs_log_error("You may only specify the label "
|
||||||
"once.\n");
|
"once.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user