boot - Fix two bugs in the ufs code.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Aug 2014 05:31:46 +0000 (22:31 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Aug 2014 05:31:46 +0000 (22:31 -0700)
commit67fefd076e8223c2c65e0f8b31bbc2848e3c047e
tree3bdfd6dcb397cb8a2910e1780ac4bab0b5a18e53
parent3e6f6bf7c4cc4e842e6c71901a515eb898990627
boot - Fix two bugs in the ufs code.

* Fix an incorrect start f_seekp position on open().  When open()ing a path
  the fp is used for the directory search.  A seek position left over from
  the directory search can wind up being left in place after the file has
  been located and openned, causing the starting seek position to not be 0.

* Fixes problems with the boot loader not detecting valid modules or a
  valid kernel image.

* Handle an overflow case in fp->f_nindir[] initialization.  This case will
  not normally occur.
lib/libstand/ufs.c