From ec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 8 Jun 2017 13:39:13 -0500 Subject: etc/profile: replace PATH with ROOTPATH if the user is root This is part of the following bug. X-Gentoo-Bug: 255695 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255695 --- etc/profile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/profile b/etc/profile index e085efa3..75c1f870 100644 --- a/etc/profile +++ b/etc/profile @@ -23,9 +23,7 @@ umask 022 # but it can make tab-completion easier when they aren't in the # user's PATH to pollute the executable namespace. if [ "${EUID-}" = "0" ] || [ "${USER-}" = "root" ] ; then - PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin${ROOTPATH:+:}${ROOTPATH-}" -else - PATH="/usr/local/bin:/usr/bin:/bin${PATH:+:}${PATH-}" + PATH="${ROOTPATH}" fi export PATH unset ROOTPATH -- cgit v1.2.3-65-gdbad