mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +00:00
Fix details of how EDITOR, VISUAL and SUDO_EDITOR are (or are not) preserved.
The description in the editor option was incorrect and didn't mention env_keep. Reported by Sander Bos
This commit is contained in:
parent
a193f39c83
commit
6fe2223298
@ -1669,9 +1669,10 @@ SSUUDDOOEERRSS OOPPTTIIOONNSS
|
|||||||
VISUAL or EDITOR environment variable if possible, or
|
VISUAL or EDITOR environment variable if possible, or
|
||||||
the first editor in the list that exists and is
|
the first editor in the list that exists and is
|
||||||
executable if not. Unless invoked as ssuuddooeeddiitt, ssuuddoo
|
executable if not. Unless invoked as ssuuddooeeddiitt, ssuuddoo
|
||||||
does not preserve the SUDO_EDITOR, VISUAL and EDITOR
|
does not preserve the SUDO_EDITOR, VISUAL or EDITOR
|
||||||
environment variables by default, even when the
|
environment variables unless they are present in the
|
||||||
_e_n_v___r_e_s_e_t option is enabled. The default is _v_i.
|
_e_n_v___k_e_e_p list or the _e_n_v___r_e_s_e_t option is disabled. The
|
||||||
|
default is _v_i.
|
||||||
|
|
||||||
iolog_dir The top-level directory to use when constructing the
|
iolog_dir The top-level directory to use when constructing the
|
||||||
path name for the input/output log directory. Only
|
path name for the input/output log directory. Only
|
||||||
@ -2951,4 +2952,4 @@ DDIISSCCLLAAIIMMEERR
|
|||||||
file distributed with ssuuddoo or https://www.sudo.ws/license.html for
|
file distributed with ssuuddoo or https://www.sudo.ws/license.html for
|
||||||
complete details.
|
complete details.
|
||||||
|
|
||||||
Sudo 1.8.28 June 19, 2019 Sudo 1.8.28
|
Sudo 1.8.28 June 20, 2019 Sudo 1.8.28
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.nr BA @BAMAN@
|
.nr BA @BAMAN@
|
||||||
.nr LC @LCMAN@
|
.nr LC @LCMAN@
|
||||||
.nr PS @PSMAN@
|
.nr PS @PSMAN@
|
||||||
.TH "SUDOERS" "@mansectform@" "June 19, 2019" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
.TH "SUDOERS" "@mansectform@" "June 20, 2019" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
||||||
.nh
|
.nh
|
||||||
.if n .ad l
|
.if n .ad l
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
@ -3453,11 +3453,13 @@ Unless invoked as
|
|||||||
does not preserve the
|
does not preserve the
|
||||||
\fRSUDO_EDITOR\fR,
|
\fRSUDO_EDITOR\fR,
|
||||||
\fRVISUAL\fR
|
\fRVISUAL\fR
|
||||||
and
|
or
|
||||||
\fREDITOR\fR
|
\fREDITOR\fR
|
||||||
environment variables by default, even when the
|
environment variables unless they are present in the
|
||||||
|
\fIenv_keep\fR
|
||||||
|
list or the
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
option is enabled.
|
option is disabled.
|
||||||
The default is
|
The default is
|
||||||
\fI@editor@\fR.
|
\fI@editor@\fR.
|
||||||
.TP 18n
|
.TP 18n
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
.nr BA @BAMAN@
|
.nr BA @BAMAN@
|
||||||
.nr LC @LCMAN@
|
.nr LC @LCMAN@
|
||||||
.nr PS @PSMAN@
|
.nr PS @PSMAN@
|
||||||
.Dd June 19, 2019
|
.Dd June 20, 2019
|
||||||
.Dt SUDOERS @mansectform@
|
.Dt SUDOERS @mansectform@
|
||||||
.Os Sudo @PACKAGE_VERSION@
|
.Os Sudo @PACKAGE_VERSION@
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -3255,11 +3255,13 @@ Unless invoked as
|
|||||||
does not preserve the
|
does not preserve the
|
||||||
.Ev SUDO_EDITOR ,
|
.Ev SUDO_EDITOR ,
|
||||||
.Ev VISUAL
|
.Ev VISUAL
|
||||||
and
|
or
|
||||||
.Ev EDITOR
|
.Ev EDITOR
|
||||||
environment variables by default, even when the
|
environment variables unless they are present in the
|
||||||
|
.Em env_keep
|
||||||
|
list or the
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
option is enabled.
|
option is disabled.
|
||||||
The default is
|
The default is
|
||||||
.Pa @editor@ .
|
.Pa @editor@ .
|
||||||
.It iolog_dir
|
.It iolog_dir
|
||||||
|
@ -32,11 +32,11 @@ DDEESSCCRRIIPPTTIIOONN
|
|||||||
vviissuuddoo. vviissuuddoo will choose the editor that matches the user's
|
vviissuuddoo. vviissuuddoo will choose the editor that matches the user's
|
||||||
SUDO_EDITOR, VISUAL or EDITOR environment variable if possible,
|
SUDO_EDITOR, VISUAL or EDITOR environment variable if possible,
|
||||||
or the first editor in the list that exists and is executable.
|
or the first editor in the list that exists and is executable.
|
||||||
Note that the SUDO_EDITOR, VISUAL and EDITOR environment
|
Note that ssuuddoo does not preserve the SUDO_EDITOR, VISUAL or
|
||||||
variables are not preserved by default when the _e_n_v___r_e_s_e_t
|
EDITOR environment variables unless they are present in the
|
||||||
_s_u_d_o_e_r_s option is enabled. The default editor path is _v_i which
|
_e_n_v___k_e_e_p list or the _e_n_v___r_e_s_e_t option is disabled in the
|
||||||
can be set at compile time via the --with-editor configure
|
_s_u_d_o_e_r_s file. The default editor path is _v_i which can be set
|
||||||
option.
|
at compile time via the --with-editor configure option.
|
||||||
|
|
||||||
env_editor
|
env_editor
|
||||||
If set, vviissuuddoo will use the value of the SUDO_EDITOR, VISUAL or
|
If set, vviissuuddoo will use the value of the SUDO_EDITOR, VISUAL or
|
||||||
|
@ -101,15 +101,20 @@ or
|
|||||||
\fREDITOR\fR
|
\fREDITOR\fR
|
||||||
environment variable if possible, or the first editor in the
|
environment variable if possible, or the first editor in the
|
||||||
list that exists and is executable.
|
list that exists and is executable.
|
||||||
Note that the
|
Note that
|
||||||
|
\fBsudo\fR
|
||||||
|
does not preserve the
|
||||||
\fRSUDO_EDITOR\fR,
|
\fRSUDO_EDITOR\fR,
|
||||||
\fRVISUAL\fR
|
\fRVISUAL\fR
|
||||||
and
|
or
|
||||||
\fREDITOR\fR
|
\fREDITOR\fR
|
||||||
environment variables are not preserved by default when the
|
environment variables unless they are present in the
|
||||||
|
\fIenv_keep\fR
|
||||||
|
list or the
|
||||||
\fIenv_reset\fR
|
\fIenv_reset\fR
|
||||||
|
option is disabled in the
|
||||||
\fIsudoers\fR
|
\fIsudoers\fR
|
||||||
option is enabled.
|
file.
|
||||||
The default editor path is
|
The default editor path is
|
||||||
\fI@editor@\fR
|
\fI@editor@\fR
|
||||||
which can be set at compile time via the
|
which can be set at compile time via the
|
||||||
|
@ -99,15 +99,20 @@ or
|
|||||||
.Ev EDITOR
|
.Ev EDITOR
|
||||||
environment variable if possible, or the first editor in the
|
environment variable if possible, or the first editor in the
|
||||||
list that exists and is executable.
|
list that exists and is executable.
|
||||||
Note that the
|
Note that
|
||||||
|
.Nm sudo
|
||||||
|
does not preserve the
|
||||||
.Ev SUDO_EDITOR ,
|
.Ev SUDO_EDITOR ,
|
||||||
.Ev VISUAL
|
.Ev VISUAL
|
||||||
and
|
or
|
||||||
.Ev EDITOR
|
.Ev EDITOR
|
||||||
environment variables are not preserved by default when the
|
environment variables unless they are present in the
|
||||||
|
.Em env_keep
|
||||||
|
list or the
|
||||||
.Em env_reset
|
.Em env_reset
|
||||||
|
option is disabled in the
|
||||||
.Em sudoers
|
.Em sudoers
|
||||||
option is enabled.
|
file.
|
||||||
The default editor path is
|
The default editor path is
|
||||||
.Pa @editor@
|
.Pa @editor@
|
||||||
which can be set at compile time via the
|
which can be set at compile time via the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user