svn commit: trunk/busybox/util-linux

vda at busybox.net vda at busybox.net
Tue Feb 6 00:35:37 UTC 2007


Author: vda
Date: 2007-02-05 16:35:36 -0800 (Mon, 05 Feb 2007)
New Revision: 17782

Log:
correct "pivot_root: pivot_root: <msg>"


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


Changeset:
Modified: trunk/busybox/util-linux/pivot_root.c
===================================================================
--- trunk/busybox/util-linux/pivot_root.c	2007-02-05 19:24:29 UTC (rev 17781)
+++ trunk/busybox/util-linux/pivot_root.c	2007-02-06 00:35:36 UTC (rev 17782)
@@ -18,8 +18,10 @@
 	if (argc != 3)
 		bb_show_usage();
 
-	if (pivot_root(argv[1],argv[2]) < 0)
-		bb_perror_msg_and_die("pivot_root");
+	if (pivot_root(argv[1], argv[2]) < 0) {
+		/* prints "pivot_root: <strerror text>" */
+		bb_perror_nomsg_and_die();
+	}
 
 	return EXIT_SUCCESS;
 }




More information about the busybox-cvs mailing list