Skip to content

Commit 8b53757

Browse files
committed
Shell-style substitution is not supported in env_file.
Also document that comments are supported.
1 parent 1161152 commit 8b53757

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

docs/sudoers.man.in

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
.nr BA @BAMAN@
2626
.nr LC @LCMAN@
2727
.nr PS @PSMAN@
28-
.TH "SUDOERS" "@mansectform@" "July 14, 2024" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
28+
.TH "SUDOERS" "@mansectform@" "November 11, 2024" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
2929
.nh
3030
.if n .ad l
3131
.SH "NAME"
@@ -5570,11 +5570,16 @@ The
55705570
\fIrestricted_env_file\fR
55715571
option specifies the fully qualified path to a file containing variables
55725572
to be set in the environment of the program being run.
5573-
Entries in this file should either be of the form
5573+
Entries in this file should be assignments in the form
55745574
\(oqVARIABLE=value\(cq
55755575
or
5576-
\(oqexport VARIABLE=value\(cq.
5576+
\(oqexport VARIABLE=value\(cq,
5577+
separated by newline characters.
55775578
The value may optionally be enclosed in single or double quotes.
5579+
Shell-style variable substitution is not supported.
5580+
Empty lines and comments starting with a pound sign
5581+
(\(oq#\(cq)
5582+
are ignored.
55785583
Variables in this file are only added if the variable does not already
55795584
exist in the environment.
55805585
Unlike

docs/sudoers.mdoc.in

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
.nr BA @BAMAN@
2626
.nr LC @LCMAN@
2727
.nr PS @PSMAN@
28-
.Dd July 14, 2024
28+
.Dd November 11, 2024
2929
.Dt SUDOERS @mansectform@
3030
.Os Sudo @PACKAGE_VERSION@
3131
.Sh NAME
@@ -5220,11 +5220,16 @@ The
52205220
.Em restricted_env_file
52215221
option specifies the fully qualified path to a file containing variables
52225222
to be set in the environment of the program being run.
5223-
Entries in this file should either be of the form
5223+
Entries in this file should be assignments in the form
52245224
.Ql VARIABLE=value
52255225
or
5226-
.Ql export VARIABLE=value .
5226+
.Ql export VARIABLE=value ,
5227+
separated by newline characters.
52275228
The value may optionally be enclosed in single or double quotes.
5229+
Shell-style variable substitution is not supported.
5230+
Empty lines and comments starting with a pound sign
5231+
.Pq Ql #
5232+
are ignored.
52285233
Variables in this file are only added if the variable does not already
52295234
exist in the environment.
52305235
Unlike

0 commit comments

Comments
 (0)