diff options
author | Mattias Andrée <maandree@kth.se> | 2021-02-01 17:33:40 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-02-01 17:33:40 +0100 |
commit | ba328d4f472c26b1835e6f0afa1e04da14b758fc (patch) | |
tree | cf456cbf2d5bb0fb12f182f29eb56fe5ee2f04fe /asroot.c | |
parent | m (diff) | |
download | asroot-ba328d4f472c26b1835e6f0afa1e04da14b758fc.tar.gz asroot-ba328d4f472c26b1835e6f0afa1e04da14b758fc.tar.bz2 asroot-ba328d4f472c26b1835e6f0afa1e04da14b758fc.tar.xz |
Fix exit value
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'asroot.c')
-rw-r--r-- | asroot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); |