git: usr.sbin/makefs: Improve error handling

Tomohiro Kusumi tkusumi at
Sun Oct 31 08:48:27 PDT 2021

commit e949eabd1a3dd3cd979a0d7426fccfb9f99b64e2
Author: Tomohiro Kusumi <tkusumi at>
Date:   Sun Oct 31 21:30:06 2021 +0900

    usr.sbin/makefs: Improve error handling
    Bail out if one of the files
    scheduled to go to the FS image we are making cannot be read (e.g. EPERM).
    Current behaviour when we issue waring but still proceeed and return success
    is definitely not correct: masking out error condition as well as making a
    slighly inconsistent FS where attempt to access the file in question ends up
    in EBADF.
    taken from FreeBSD 781e78182da4fb382485b9cb71127a7c2a2588b0

Summary of changes:
 usr.sbin/makefs/ffs.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list