aboutsummaryrefslogtreecommitdiff
path: root/util-linux/switch_root.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r--util-linux/switch_root.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 32708934e..fb6057a02 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -97,9 +97,8 @@ int switch_root_main(int argc UNUSED_PARAM, char **argv)
97 struct statfs stfs; 97 struct statfs stfs;
98 dev_t rootdev; 98 dev_t rootdev;
99 99
100 // Parse args (-c console) 100 // Parse args (-c console). '+': stop at first non-option
101 opt_complementary = "-2"; // minimum 2 params 101 getopt32(argv, "^+" "c:" "\0" "-2" /* minimum 2 args */, &console);
102 getopt32(argv, "+c:", &console); // '+': stop at first non-option
103 argv += optind; 102 argv += optind;
104 newroot = *argv++; 103 newroot = *argv++;
105 104