aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LICENSE2
-rw-r--r--README2
-rw-r--r--asroot.81
-rw-r--r--asroot.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/LICENSE b/LICENSE
index 09fb02a..b2a7dfb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
ISC License
-© 2021 Mattias Andrée <m@maandree.se>
+© 2021, 2025 Mattias Andrée <m@maandree.se>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
diff --git a/README b/README
index 58a4445..e03af00 100644
--- a/README
+++ b/README
@@ -32,4 +32,4 @@ OPERANDS
Command line arguments for the command to run.
SEE ALSO
- editasroot(8), key2root(8), sudo(8), doas(1), su(1)
+ gasroot(8), editasroot(8), key2root(8), sudo(8), doas(1), su(1)
diff --git a/asroot.8 b/asroot.8
index 05ea6ce..d98be9f 100644
--- a/asroot.8
+++ b/asroot.8
@@ -139,6 +139,7 @@ None.
None.
.SH SEE ALSO
+.BR gasroot (8),
.BR editasroot (8),
.BR key2root (8),
.BR sudo (8),
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)) {