Skip to content

Commit e64c6a8

Browse files
authored
Fix Typo in Documentation and Improve Alias Mechanism Test Description (#1159)
These changes enhance the accuracy and readability of both the documentation and the test code. No functional code changes are introduced.
1 parent c42e254 commit e64c6a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/man/sudo.8.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The following percent (`%') escape sequences are supported:
107107
.EE
108108
.PP
109109
The custom prompt will override the default prompt or the one specified
110-
by the SUDO_PROMPT enviroment variable.
110+
by the SUDO_PROMPT environment variable.
111111
No \f[I]prompt\f[R] will suppress the the prompt provided by PAM, unless
112112
the requested \f[I]prompt\f[R] is empty (\f[CR]\[dq]\[dq]\f[R])
113113
.RE

src/sudoers/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ fn permission_test() {
246246

247247
pass!(["Runas_Alias \\"," TIME=%wheel \\",",sudo # hallo","user ALL \\","=(TIME) ALL"], "user" => request! { wheel, wheel }, "vm"; "/bin/ls");
248248

249-
// test the less-intuitive "substition-like" alias mechanism
249+
// test the less-intuitive "substitution-like" alias mechanism
250250
FAIL!(["User_Alias FOO=!user", "ALL, FOO ALL=ALL"], "user" => root(), "vm"; "/bin/ls");
251251
pass!(["User_Alias FOO=!user", "!FOO ALL=ALL"], "user" => root(), "vm"; "/bin/ls");
252252

0 commit comments

Comments
 (0)