From 5a721a7dffd5b2aee7a654f7f06b7cbeb15b8bd9 Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 11 Apr 2003 13:54:28 +0000 Subject: Return "/boot/kernel/kernel" instead of "/kernel" if the sysctl() call fails. The documentation was incorrectly updated in getbootfile.3 rev. 1.10. --- lib/libc/gen/getbootfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/getbootfile.c b/lib/libc/gen/getbootfile.c index 2f134bd..2bb30bf 100644 --- a/lib/libc/gen/getbootfile.c +++ b/lib/libc/gen/getbootfile.c @@ -50,6 +50,6 @@ getbootfile(void) mib[0] = CTL_KERN; mib[1] = KERN_BOOTFILE; if (sysctl(mib, 2, name, &size, NULL, 0) == -1) - return ("/kernel"); + return ("/boot/kernel/kernel"); return (name); } -- cgit v1.1