https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211485

            Bug ID: 211485
           Summary: fsck_ffs(8) doesn't exit with error code (but 0) on
                    error (without -[pCF])
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: bugzilla.free...@omnilan.de

Since r276737, some additional checks before setup() in checkfilesys() (calling
calcsb() in my case) lead to correct exit code on failure.
Now, only -p, -C or -F lead to correct exit code on failure e.g. if no
superblock was found (because there's no FFS yet...).

By default, fsck_ffs exits with 0 even on error, which most likely breaks
script for others too!

I could incorporate additional if-then-exit(with) lines, but that's most likely
not the FreeBSD way. So I'm really looking forward how to solve this more
sophisticated.

Thanks,

-Harry

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to