[Bug 211485] fsck_ffs(8) doesn't exit with error code (but 0) on error (without -[pCF])
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 31 20:24:03 UTC 2016
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 at FreeBSD.org
Reporter: bugzilla.freebsd at 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.
More information about the freebsd-bugs
mailing list