commit 45cc7029f73d7be6493fb29056b462ee4e9a4d40
parent cd045626ce454b4f90f2c1890ced7bee7d70d3b3
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 23 Dec 2019 14:53:31 +0100
Use EXIT_FAILURE when exiting due to pledge violations.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/statzone.c b/src/statzone.c
@@ -4,7 +4,7 @@
* https://www.statdns.com
*
* Created: 2012-02-13
- * Last Updated: 2019-12-22
+ * Last Updated: 2019-12-23
*
* StatZone is released under the BSD 2-Clause license
* See LICENSE file for details.
@@ -81,7 +81,7 @@ main(int argc, char *argv[]) {
int token_count;
if (pledge("stdio rpath", NULL) == -1) {
- err(1, "pledge");
+ err(EXIT_FAILURE, "pledge");
}
#ifdef HAVE_SECCOMP