git: boot - Fix gzipped initrd.img loading

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Aug 1 17:40:24 PDT 2015


commit ca9b0af460b8bcd5f8d847b15d76504d8ad9c813
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Aug 1 17:39:12 2015 -0700

    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.

Summary of changes:
 lib/libstand/bzipfs.c  | 2 +-
 lib/libstand/gzipfs.c  | 2 +-
 lib/libstand/splitfs.c | 2 +-
 lib/libstand/ufs.c     | 2 ++
 lib/libstand/zipfs.c   | 2 +-
 5 files changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca9b0af460b8bcd5f8d847b15d76504d8ad9c813


-- 
DragonFly BSD source repository



More information about the Commits mailing list