svn commit: [26170] trunk/busybox/util-linux

vda at busybox.net vda at busybox.net
Tue Apr 21 00:29:17 UTC 2009


Author: vda
Date: 2009-04-21 00:29:17 +0000 (Tue, 21 Apr 2009)
New Revision: 26170

Log:
switch_root: print errno on failure



Modified:
   trunk/busybox/util-linux/switch_root.c


Changeset:
Modified: trunk/busybox/util-linux/switch_root.c
===================================================================
--- trunk/busybox/util-linux/switch_root.c	2009-04-21 00:17:00 UTC (rev 26169)
+++ trunk/busybox/util-linux/switch_root.c	2009-04-21 00:29:17 UTC (rev 26170)
@@ -97,7 +97,7 @@
 	// Overmount / with newdir and chroot into it.  The chdir is needed to
 	// recalculate "." and ".." links.
 	if (mount(".", "/", NULL, MS_MOVE, NULL))
-		bb_error_msg_and_die("error moving root");
+		bb_perror_msg_and_die("error moving root");
 	xchroot(".");
 	xchdir("/");
 



More information about the busybox-cvs mailing list