diff options
author | tjr <tjr@FreeBSD.org> | 2003-04-11 13:54:28 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-04-11 13:54:28 +0000 |
commit | 5a721a7dffd5b2aee7a654f7f06b7cbeb15b8bd9 (patch) | |
tree | 81bd3772cdd384ef9c07a62120c1460df36504dd /lib/libc | |
parent | 01d77f90849eb221791a4797b64744dea3967df8 (diff) | |
download | FreeBSD-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.c | 2 |
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); } |