mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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