aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/switch_root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 700f7997e..bd1e9d5ce 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -73,8 +73,8 @@ int switch_root_main(int argc, char **argv)
73 73
74 // Parse args (-c console) 74 // Parse args (-c console)
75 75
76 opt_complementary = "-2"; 76 opt_complementary = "-2"; // minimum 2 params
77 getopt32(argv, "c:", &console); 77 getopt32(argv, "+c:", &console); // '+': stop parsing at first non-option
78 argv += optind; 78 argv += optind;
79 79
80 // Change to new root directory and verify it's a different fs. 80 // Change to new root directory and verify it's a different fs.