[klibc] [patch] trivial cleanup
Aaron Griffin
aaronmgriffin at gmail.com
Wed Mar 22 00:44:57 PST 2006
remove 'NFS-Root' from an error message, and get rid of the old_root
check, as it's unused and fails if the target filesystem is mounted
'ro' for no good reason.
--- kinit.c 2006-03-21 23:48:15.000000000 -0600
+++ kinit.c 2006-03-22 01:09:39.000000000 -0600
@@ -191,7 +191,7 @@
}
}
else if (!S_ISDIR(st.st_mode)) {
- fprintf(stderr, "NFS-Root: '%s' not a directory\n", path);
+ fprintf(stderr, "%s: '%s' not a directory\n", progname, path);
exit(1);
}
}
@@ -276,8 +276,6 @@
check_path("/root");
do_mounts(cmdc, cmdv);
- /* do_mounts cd's to /root so below tests /root/old_root */
- check_path("old_root");
if (mnt_procfs == 1)
umount2("/proc", 0);
More information about the klibc
mailing list