Date: Sun, 31 Jul 2016 20:24:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 211485] fsck_ffs(8) doesn't exit with error code (but 0) on error (without -[pCF]) Message-ID: <bug-211485-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211485 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.freebsd@omnilan.de Since r276737, some additional checks before setup() in checkfilesys() (cal= ling 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 li= kely not the FreeBSD way. So I'm really looking forward how to solve this more sophisticated. Thanks, -Harry --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211485-8>