From e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 21 Apr 2009 20:52:58 +0000 Subject: [PATCH] switch_root: move misplaced comment --- util-linux/switch_root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) // For example, fails when newroot is not a mountpoint bb_perror_msg_and_die("error moving root"); } - // The chdir is needed to recalculate "." and ".." links xchroot("."); + // The chdir is needed to recalculate "." and ".." links xchdir("/"); // If a new console specified, redirect stdin/stdout/stderr to it -- 2.25.1