summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2018-11-22 12:04:54 +0100
committerKarel Zak2018-11-22 12:04:54 +0100
commitf069b1282452e20711d580027b818e2e09db174a (patch)
tree193d8e7b4360ef958a4bdc4a9147da3be0fd30cc
parentMerge branch '2018wk41' of https://github.com/kerolasa/util-linux (diff)
parentMerge branch 'master' of github.com:karelzak/util-linux (diff)
downloadkernel-qcow2-util-linux-f069b1282452e20711d580027b818e2e09db174a.tar.gz
kernel-qcow2-util-linux-f069b1282452e20711d580027b818e2e09db174a.tar.xz
kernel-qcow2-util-linux-f069b1282452e20711d580027b818e2e09db174a.zip
Merge branch 'master' of https://github.com/nyantec/util-linux
* 'master' of https://github.com/nyantec/util-linux: fix a bug where switch_root would erroneously try to parse initargs
-rw-r--r--sys-utils/switch_root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c
index 3c66d0186..a85ce24b9 100644
--- a/sys-utils/switch_root.c
+++ b/sys-utils/switch_root.c
@@ -227,7 +227,7 @@ int main(int argc, char *argv[])
atexit(close_stdout);
- while ((c = getopt_long(argc, argv, "Vh", longopts, NULL)) != -1)
+ while ((c = getopt_long(argc, argv, "+Vh", longopts, NULL)) != -1)
switch (c) {
case 'V':
printf(UTIL_LINUX_VERSION);