Make cin be static
[oweals/busybox.git] / chroot.c
index f279af18d96b2ea226e783a35235cbbfa889cdc2..91d3407f2a37f6a5ee7e0470d68880af3be667da 100644 (file)
--- a/chroot.c
+++ b/chroot.c
@@ -38,7 +38,7 @@ int chroot_main(int argc, char **argv)
        argv++;
 
        if (chroot(*argv) || (chdir("/"))) {
-               fatalError("cannot change root directory to %s: %s\n", *argv, strerror(errno));
+               perror_msg_and_die("cannot change root directory to %s", *argv);
        }
 
        argc--;
@@ -57,7 +57,7 @@ int chroot_main(int argc, char **argv)
                return EXIT_SUCCESS;
 #endif
        }
-       fatalError("cannot execute %s: %s\n", prog, strerror(errno));
+       perror_msg_and_die("cannot execute %s", prog);
 
 }