aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-19 20:41:05 +0100
committerMattias Andrée <m@maandree.se>2025-12-19 20:41:05 +0100
commit8aa5b95f0c287053a5aeda84980009c913d6eebc (patch)
treea669879a5f1d7b6e6f79d7addbe3e19b37bb4fc5
parentAdd gasroot to see also (diff)
downloadasroot-8aa5b95f0c287053a5aeda84980009c913d6eebc.tar.gz
asroot-8aa5b95f0c287053a5aeda84980009c913d6eebc.tar.bz2
asroot-8aa5b95f0c287053a5aeda84980009c913d6eebc.tar.xz
Add missing exit on failureHEAD1.1.10master
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--asroot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/asroot.c b/asroot.c
index 1a422e0..eeed7ed 100644
--- a/asroot.c
+++ b/asroot.c
@@ -151,6 +151,7 @@ check_password(void)
hostname = realloc(hostname, size *= 2);
if (!hostname) {
fprintf(stderr, "%s: realloc %zu: %s\n", argv0, size, strerror(errno));
+ exit(EXIT_ERROR);
}
*hostname = 0;
if (!gethostname(hostname, size)) {