diff options
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r-- | util-linux/switch_root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 43c2a6991..43377e16e 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
@@ -111,7 +111,7 @@ int switch_root_main(int argc, char **argv) | |||
111 | 111 | ||
112 | if (console) { | 112 | if (console) { |
113 | close(0); | 113 | close(0); |
114 | if(open(console, O_RDWR) < 0) | 114 | if (open(console, O_RDWR) < 0) |
115 | bb_error_msg_and_die("bad console '%s'", console); | 115 | bb_error_msg_and_die("bad console '%s'", console); |
116 | dup2(0, 1); | 116 | dup2(0, 1); |
117 | dup2(0, 2); | 117 | dup2(0, 2); |