File klibc-2.0.4-pivot_root.patch of Package klibc

diff -Nurp klibc-2.0.4/usr/utils/pivot_root.c klibc-2.0.4-pivot_root/usr/utils/pivot_root.c
--- klibc-2.0.4/usr/utils/pivot_root.c	2014-07-26 03:15:07.000000000 +0300
+++ klibc-2.0.4-pivot_root/usr/utils/pivot_root.c	2014-09-22 05:49:02.941414437 +0300
@@ -7,13 +7,11 @@
 
 int main(int argc, const char **argv)
 {
-	if (argc != 3) {
+	if (argc != 3)
 		fprintf(stderr, "Usage: %s new_root put_old\n", argv[0]);
-		return 1;
-	}
-	if (pivot_root(argv[1], argv[2]) < 0) {
+	else if (pivot_root(argv[1], argv[2]) < 0)
 		perror("pivot_root");
-		return 1;
-	}
-	return 0;
+	else
+		return 0;
+	return 1;
 }
openSUSE Build Service is sponsored by