diff options
author | Mina Galić <freebsd@igalic.co> | 2023-10-05 18:24:53 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2023-12-13 16:23:57 +0000 |
commit | fdbd1da14068b4c7751057030b26b2df345060e4 (patch) | |
tree | 02014e575727874396cd00d995f05bdb0f35263b /usr.bin/cap_mkdb | |
parent | 8d42f85d9d7b5394edbe6f18c1e96c0d35d49b3c (diff) | |
download | src-fdbd1da14068b4c7751057030b26b2df345060e4.tar.gz src-fdbd1da14068b4c7751057030b26b2df345060e4.zip |
growfs: make exit codes more consistent
We have overused err(1), so it's hard to distinguish when an error is
very, very serious, and when it's just a user-error, or even harmless.
This patch changes the current behaviour to distinguish between the
following three:
1 for usage errors
2 for recoverable errors
3 or higher for unrecoverable errors
Reviewed by: jilles, pauamma_gundo.com, des
Differential Revision: https://reviews.freebsd.org/D27161
(cherry picked from commit 70a0fb43f91cfe3d08db7cb443d9690f8bff065e)
Diffstat (limited to 'usr.bin/cap_mkdb')
0 files changed, 0 insertions, 0 deletions