summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-03-21 11:09:41 -0400
committerMike Gilbert <floppym@gentoo.org>2021-03-21 11:09:41 -0400
commit786ecd5f4c84942af2dc178c2ac9fcaab224a7c9 (patch)
tree2ea816ca27e1bbe3af8cce6189c9a192c518a31d /app-admin
parentapp-admin/sudo: re-order default secure_path (diff)
downloadgentoo-786ecd5f4c84942af2dc178c2ac9fcaab224a7c9.tar.gz
gentoo-786ecd5f4c84942af2dc178c2ac9fcaab224a7c9.tar.bz2
gentoo-786ecd5f4c84942af2dc178c2ac9fcaab224a7c9.zip
app-admin/sudo: remove obsolete comments
The built-in secure_path should be viewed as a reasonable fallback. The sysadmin may in fact customize it via sudoers at runtime. Also drop the useless einfo output: this function takes a fraction of a second to complete, and there is no need for a status message. Bug: https://bugs.gentoo.org/777267 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/sudo/sudo-1.9.6_p1-r1.ebuild7
-rw-r--r--app-admin/sudo/sudo-9999.ebuild7
2 files changed, 0 insertions, 14 deletions
diff --git a/app-admin/sudo/sudo-1.9.6_p1-r1.ebuild b/app-admin/sudo/sudo-1.9.6_p1-r1.ebuild
index 6f0b7c8646a3..32c7ad773094 100644
--- a/app-admin/sudo/sudo-1.9.6_p1-r1.ebuild
+++ b/app-admin/sudo/sudo-1.9.6_p1-r1.ebuild
@@ -80,11 +80,6 @@ src_prepare() {
}
set_secure_path() {
- # FIXME: secure_path is a compile time setting. using PATH or
- # ROOTPATH is not perfect, env-update may invalidate this, but until it
- # is available as a sudoers setting this will have to do.
- einfo "Setting secure_path ..."
-
# first extract the default ROOTPATH from build env
SECURE_PATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env;
echo "${ROOTPATH}")
@@ -122,8 +117,6 @@ set_secure_path() {
SECURE_PATH=${newpath#:}
}
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
-
- einfo "... done"
}
src_configure() {
diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild
index 6f0b7c8646a3..32c7ad773094 100644
--- a/app-admin/sudo/sudo-9999.ebuild
+++ b/app-admin/sudo/sudo-9999.ebuild
@@ -80,11 +80,6 @@ src_prepare() {
}
set_secure_path() {
- # FIXME: secure_path is a compile time setting. using PATH or
- # ROOTPATH is not perfect, env-update may invalidate this, but until it
- # is available as a sudoers setting this will have to do.
- einfo "Setting secure_path ..."
-
# first extract the default ROOTPATH from build env
SECURE_PATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env;
echo "${ROOTPATH}")
@@ -122,8 +117,6 @@ set_secure_path() {
SECURE_PATH=${newpath#:}
}
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
-
- einfo "... done"
}
src_configure() {