mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
Return "/boot/kernel/kernel" instead of "/kernel" if the sysctl() call
fails. The documentation was incorrectly updated in getbootfile.3 rev. 1.10.
This commit is contained in:
parent
9720c4f309
commit
a40248455d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113362
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue