summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-04-11 13:54:28 +0000
committertjr <tjr@FreeBSD.org>2003-04-11 13:54:28 +0000
commit5a721a7dffd5b2aee7a654f7f06b7cbeb15b8bd9 (patch)
tree81bd3772cdd384ef9c07a62120c1460df36504dd /lib/libc
parent01d77f90849eb221791a4797b64744dea3967df8 (diff)
downloadFreeBSD-src-5a721a7dffd5b2aee7a654f7f06b7cbeb15b8bd9.zip
FreeBSD-src-5a721a7dffd5b2aee7a654f7f06b7cbeb15b8bd9.tar.gz
Return "/boot/kernel/kernel" instead of "/kernel" if the sysctl() call
fails. The documentation was incorrectly updated in getbootfile.3 rev. 1.10.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getbootfile.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud