boot - Fix gzipped initrd.img loading
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 2 Aug 2015 00:39:12 +0000 (17:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 2 Aug 2015 00:39:12 +0000 (17:39 -0700)
commitca9b0af460b8bcd5f8d847b15d76504d8ad9c813
tree1ccfced3e9595a519e0394379ec36b02c8325849
parentf8cf933f23175abff246d32d9065c4a27f75684b
boot - Fix gzipped initrd.img loading

* Fix tests in libstand filesystems against f_flags.  Previous tests
  were f_flags != F_READ, which does not work properly when other flags
  are present.  Change to ((f_flags & (F_READ|F_WRITE)) != F_READ).

* Skip whiteout entries in UFS.  These could lead to false positives.
lib/libstand/bzipfs.c
lib/libstand/gzipfs.c
lib/libstand/splitfs.c
lib/libstand/ufs.c
lib/libstand/zipfs.c