mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
switch_root: stop at first non-option. Closes bug 1425.
This commit is contained in:
parent
87cf2ee8ab
commit
6dd03f04ea
@ -73,8 +73,8 @@ int switch_root_main(int argc, char **argv)
|
|||||||
|
|
||||||
// Parse args (-c console)
|
// Parse args (-c console)
|
||||||
|
|
||||||
opt_complementary = "-2";
|
opt_complementary = "-2"; // minimum 2 params
|
||||||
getopt32(argv, "c:", &console);
|
getopt32(argv, "+c:", &console); // '+': stop parsing at first non-option
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
// Change to new root directory and verify it's a different fs.
|
// Change to new root directory and verify it's a different fs.
|
||||||
|
Loading…
Reference in New Issue
Block a user