From ba328d4f472c26b1835e6f0afa1e04da14b758fc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Feb 2021 17:33:40 +0100 Subject: Fix exit value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- asroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asroot.c b/asroot.c index 9d10c54..f53c0c4 100644 --- a/asroot.c +++ b/asroot.c @@ -110,7 +110,7 @@ set_environ(void) if (!new_environ) { fprintf(stderr, "%s: calloc %zu %zu: %s\n", argv0, sizeof(env_whitelist) / sizeof(*env_whitelist) + 5, sizeof(*env_whitelist), strerror(errno)); - exit(errno == ENOENT ? 127 : 126); + exit(EXIT_ERROR); } for (i = 0, n = 0; env_whitelist[i]; i++) { len = strlen(env_whitelist[i]); -- cgit v1.2.3-70-g09d2