aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-01 17:33:40 +0100
committerMattias Andrée <maandree@kth.se>2021-02-01 17:33:40 +0100
commitba328d4f472c26b1835e6f0afa1e04da14b758fc (patch)
treecf456cbf2d5bb0fb12f182f29eb56fe5ee2f04fe
parentm (diff)
downloadasroot-ba328d4f472c26b1835e6f0afa1e04da14b758fc.tar.gz
asroot-ba328d4f472c26b1835e6f0afa1e04da14b758fc.tar.bz2
asroot-ba328d4f472c26b1835e6f0afa1e04da14b758fc.tar.xz
Fix exit value
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--asroot.c2
1 files changed, 1 insertions, 1 deletions
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]);