mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
The --preserve-env=list option may be specified more than once.
This commit is contained in:
parent
deb9ce7d12
commit
92199e25c4
@ -25,7 +25,7 @@
|
|||||||
.nr BA @BAMAN@
|
.nr BA @BAMAN@
|
||||||
.nr LC @LCMAN@
|
.nr LC @LCMAN@
|
||||||
.nr PS @PSMAN@
|
.nr PS @PSMAN@
|
||||||
.TH "SUDO" "@mansectsu@" "May 6, 2020" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
|
.TH "SUDO" "@mansectsu@" "May 7, 2020" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
|
||||||
.nh
|
.nh
|
||||||
.if n .ad l
|
.if n .ad l
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
@ -290,6 +290,7 @@ comma-separated list of environment variables to those preserved
|
|||||||
from the user's environment.
|
from the user's environment.
|
||||||
The security policy may return an error if the user does not have
|
The security policy may return an error if the user does not have
|
||||||
permission to preserve the environment.
|
permission to preserve the environment.
|
||||||
|
This option may be specified multiple times.
|
||||||
.TP 12n
|
.TP 12n
|
||||||
\fB\-e\fR, \fB\--edit\fR
|
\fB\-e\fR, \fB\--edit\fR
|
||||||
Edit one or more files instead of running a command.
|
Edit one or more files instead of running a command.
|
||||||
@ -686,7 +687,8 @@ option indicates that
|
|||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
should stop processing command line arguments.
|
should stop processing command line arguments.
|
||||||
.PP
|
.PP
|
||||||
Options that take a value may only be specified once.
|
Options that take a value may only be specified once unless
|
||||||
|
otherwise indicated in the description.
|
||||||
This is to help guard against problems caused by poorly written
|
This is to help guard against problems caused by poorly written
|
||||||
scripts that invoke
|
scripts that invoke
|
||||||
\fBsudo\fR
|
\fBsudo\fR
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
.nr BA @BAMAN@
|
.nr BA @BAMAN@
|
||||||
.nr LC @LCMAN@
|
.nr LC @LCMAN@
|
||||||
.nr PS @PSMAN@
|
.nr PS @PSMAN@
|
||||||
.Dd May 6, 2020
|
.Dd May 7, 2020
|
||||||
.Dt SUDO @mansectsu@
|
.Dt SUDO @mansectsu@
|
||||||
.Os Sudo @PACKAGE_VERSION@
|
.Os Sudo @PACKAGE_VERSION@
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -280,6 +280,7 @@ comma-separated list of environment variables to those preserved
|
|||||||
from the user's environment.
|
from the user's environment.
|
||||||
The security policy may return an error if the user does not have
|
The security policy may return an error if the user does not have
|
||||||
permission to preserve the environment.
|
permission to preserve the environment.
|
||||||
|
This option may be specified multiple times.
|
||||||
.It Fl e , -edit
|
.It Fl e , -edit
|
||||||
Edit one or more files instead of running a command.
|
Edit one or more files instead of running a command.
|
||||||
In lieu of a path name, the string "sudoedit" is used when consulting
|
In lieu of a path name, the string "sudoedit" is used when consulting
|
||||||
@ -638,7 +639,8 @@ option indicates that
|
|||||||
should stop processing command line arguments.
|
should stop processing command line arguments.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Options that take a value may only be specified once.
|
Options that take a value may only be specified once unless
|
||||||
|
otherwise indicated in the description.
|
||||||
This is to help guard against problems caused by poorly written
|
This is to help guard against problems caused by poorly written
|
||||||
scripts that invoke
|
scripts that invoke
|
||||||
.Nm sudo
|
.Nm sudo
|
||||||
|
@ -356,8 +356,6 @@ parse_args(int argc, char **argv, int *old_optind, int *nargc, char ***nargv,
|
|||||||
sudo_settings[ARG_PRESERVE_ENVIRONMENT].value = "true";
|
sudo_settings[ARG_PRESERVE_ENVIRONMENT].value = "true";
|
||||||
SET(flags, MODE_PRESERVE_ENV);
|
SET(flags, MODE_PRESERVE_ENV);
|
||||||
} else {
|
} else {
|
||||||
if (extra_env.env_len != 0)
|
|
||||||
usage();
|
|
||||||
parse_env_list(&extra_env, optarg);
|
parse_env_list(&extra_env, optarg);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user