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:
Tim J. Robbins 2003-04-11 13:54:28 +00:00
parent 9720c4f309
commit a40248455d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113362

View file

@ -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);
}