opnsense-src/sbin/growfs
Mina Galić fdbd1da140 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)
2023-12-13 17:23:57 +01:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
debug.c Purge more stray embedded $FreeBSD$ strings 2023-10-24 10:10:12 -07:00
debug.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
growfs.8 growfs: make exit codes more consistent 2023-12-13 17:23:57 +01:00
growfs.c growfs: make exit codes more consistent 2023-12-13 17:23:57 +01:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00