aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 13:27:22 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 13:27:22 +0100
commit4ce39a885e6025a39ca8a6801c2b3feab1f879d5 (patch)
treebe334e3e0a923dff980f511e0e30383cf59b9ccb
parentfix config.mk (diff)
downloadgasroot-1.0.1.tar.gz
gasroot-1.0.1.tar.bz2
gasroot-1.0.1.tar.xz
m fixes1.0.1
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--README6
-rw-r--r--gasroot-setuid.c2
-rw-r--r--gasroot.828
-rw-r--r--mk/gasroot-gtk2=yes.mk2
-rw-r--r--mk/gasroot-gtk3=yes.mk2
5 files changed, 21 insertions, 19 deletions
diff --git a/README b/README
index e5e34b7..41d074a 100644
--- a/README
+++ b/README
@@ -9,11 +9,11 @@ DESCRIPTION
interface, and runs the specified command with sanitised and updated
environment variables.
- Only users in the wheel group are allowed to run the asroot utility,
+ Only users in the wheel group are allowed to run the gasroot utility,
unless it is installed with non-standard permissions.
OPTIONS
- The asroot utility conforms to the Base Definitions volume of
+ The gasroot utility conforms to the Base Definitions volume of
POSIX.1-2017, Section 12.2, Utility Syntax Guidelines.
The following option is supported:
@@ -25,7 +25,7 @@ OPERANDS
The following operands are supported:
command
- The command that shall be run with as the root user. This will
+ The command that shall be run as the root user. This will
be both the process image and the process's zeroth command line
argument.
diff --git a/gasroot-setuid.c b/gasroot-setuid.c
index b699b32..ca0b6c6 100644
--- a/gasroot-setuid.c
+++ b/gasroot-setuid.c
@@ -258,6 +258,6 @@ main(int argc, char *argv[])
}
execvp(argv[0], argv);
- fprintf(stderr, "%s: execvpe %s: %s\n", argv0, argv[0], strerror(errno));
+ fprintf(stderr, "%s: execvp %s: %s\n", argv0, argv[0], strerror(errno));
return errno == ENOENT ? EXIT_NOENT : EXIT_EXEC;
}
diff --git a/gasroot.8 b/gasroot.8
index 683410d..7a1e1dc 100644
--- a/gasroot.8
+++ b/gasroot.8
@@ -1,4 +1,4 @@
-.TH GASROOT 8 gasroot
+.TH GASROOT 8 GASROOT
.SH NAME
gasroot - run a process as the root user
@@ -21,12 +21,12 @@ with sanitised and updated environment variables.
Only users in the
.B wheel
group are allowed to run the
-.B asroot
+.B gasroot
utility, unless it is installed with non-standard permissions.
.SH OPTIONS
The
-.B asroot
+.B gasroot
utility conforms to the Base Definitions volume of POSIX.1-2017,
.IR "Section 12.2" ,
.IR "Utility Syntax Guidelines" .
@@ -41,7 +41,7 @@ sanitise nor update them.
The following operands are supported:
.TP
.I command
-The command that shall be run with as the root user.
+The command that shall be run as the root user.
This will be both the process image and the process's
zeroth command line argument.
.TP
@@ -53,21 +53,23 @@ The
.B gasroot
utility does not use the standard input, however the
.I command
-it starts may.
+it starts may use it.
.SH INPUT FILES
None.
.SH ENVIRONMENT VARIABLES
-The following environment variables affects the execution of
+The following environment variables affect the execution of
.BR gasroot :
.TP
-.SH PATH
-Default. See to the Base Definitions volume of POSIX.1-2017, Section 8.3, Other Environment Variables.
+.B PATH
+Default. See the Base Definitions volume of POSIX.1-2017,
+.IR "Section 8.3" ,
+.IR "Other Environment Variables" .
.PP
The execution of
.B gasroot
-is also affected by environment variables that affects it tooltik.
+is also affected by environment variables that affect its toolkit.
.SH ASYNCHRONOUS EVENTS
Default.
@@ -77,7 +79,7 @@ The
.B gasroot
utility does not use the standard output, however the
.I command
-it starts may.
+it starts may use it.
.SH STDERR
The standard error is used for diagnostic messages and the
@@ -99,7 +101,7 @@ If the
utility fails it will exit with one of the following statuses:
.TP
125
-A error occurred.
+An error occurred.
.TP
126
The process failed to change process image.
@@ -129,11 +131,11 @@ None.
The
.I PATH
environment variable will not be updated.
-Updates environment variables are:
+Updated environment variables are:
.IR HOME ,
.IR LOGNAME ,
.IR MAIL ,
-.IR SHEEL ,
+.IR SHELL ,
and
.IR USER .
diff --git a/mk/gasroot-gtk2=yes.mk b/mk/gasroot-gtk2=yes.mk
index 8dd3df4..8e24a2d 100644
--- a/mk/gasroot-gtk2=yes.mk
+++ b/mk/gasroot-gtk2=yes.mk
@@ -18,4 +18,4 @@ uninstall-gasroot-gtk2:
install: install-gasroot-gtk2
uninstall: uninstall-gasroot-gtk2
-.PHONY: install-gasroot-gtk2 unstall-gasroot-gtk2
+.PHONY: install-gasroot-gtk2 uninstall-gasroot-gtk2
diff --git a/mk/gasroot-gtk3=yes.mk b/mk/gasroot-gtk3=yes.mk
index 0228180..a04e1ee 100644
--- a/mk/gasroot-gtk3=yes.mk
+++ b/mk/gasroot-gtk3=yes.mk
@@ -18,4 +18,4 @@ uninstall-gasroot-gtk3:
install: install-gasroot-gtk3
uninstall: uninstall-gasroot-gtk3
-.PHONY: install-gasroot-gtk3 unstall-gasroot-gtk3
+.PHONY: install-gasroot-gtk3 uninstall-gasroot-gtk3