diff options
author | obrien <obrien@FreeBSD.org> | 2000-05-13 02:45:11 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-05-13 02:45:11 +0000 |
commit | ee4196ca57984479fd16605232b42b7a2e7c92c8 (patch) | |
tree | 69706174d60b51e0ee9df7d747fed1222b56f413 /sys/boot/common/boot.c | |
parent | f4100424553accd30e29b2db9af02c59be690e27 (diff) | |
download | FreeBSD-src-ee4196ca57984479fd16605232b42b7a2e7c92c8.zip FreeBSD-src-ee4196ca57984479fd16605232b42b7a2e7c92c8.tar.gz |
The loader was written so that if /kernel was missing /kernel.old would
be booted. Due to a bug, this wasn't happening.
There is still a lesser bug in that the loader decides which file to boot
after the 10sec count down. This means the bootfile listed in the count
down in is wrong in the case where the loader will boot /kernel.old.
Diffstat (limited to 'sys/boot/common/boot.c')
-rw-r--r-- | sys/boot/common/boot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/common/boot.c b/sys/boot/common/boot.c index e4d0583..dfd400c 100644 --- a/sys/boot/common/boot.c +++ b/sys/boot/common/boot.c @@ -249,6 +249,8 @@ getbootfile(int try) while ((try > 0) && (spec != NULL)) { spec = strchr(spec, ';'); + if (spec) + spec++; /* skip over the leading ';' */ try--; } if (spec != NULL) { |