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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index f9e3444d5..b3b3bf7e6 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -103,8 +103,8 @@ int switch_root_main(int argc UNUSED_PARAM, char **argv)
103 // For example, fails when newroot is not a mountpoint 103 // For example, fails when newroot is not a mountpoint
104 bb_perror_msg_and_die("error moving root"); 104 bb_perror_msg_and_die("error moving root");
105 } 105 }
106 // The chdir is needed to recalculate "." and ".." links
107 xchroot("."); 106 xchroot(".");
107 // The chdir is needed to recalculate "." and ".." links
108 xchdir("/"); 108 xchdir("/");
109 109
110 // If a new console specified, redirect stdin/stdout/stderr to it 110 // If a new console specified, redirect stdin/stdout/stderr to it