projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87cf2ee
)
switch_root: stop at first non-option. Closes bug 1425.
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 13 Feb 2008 17:25:31 +0000
(17:25 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 13 Feb 2008 17:25:31 +0000
(17:25 -0000)
util-linux/switch_root.c
patch
|
blob
|
history
diff --git
a/util-linux/switch_root.c
b/util-linux/switch_root.c
index 700f7997eadb5b69434d20b7046a6c23f099ebbe..bd1e9d5ce9a034869ae8e2bd2b54d85ca7a51dc6 100644
(file)
--- a/
util-linux/switch_root.c
+++ b/
util-linux/switch_root.c
@@
-73,8
+73,8
@@
int switch_root_main(int argc, char **argv)
// Parse args (-c console)
- opt_complementary = "-2";
- getopt32(argv, "
c:", &console);
+ opt_complementary = "-2";
// minimum 2 params
+ getopt32(argv, "
+c:", &console); // '+': stop parsing at first non-option
argv += optind;
// Change to new root directory and verify it's a different fs.