commit:     ec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  8 18:39:13 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jun  8 18:39:13 2017 +0000
URL:        https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=ec3d9fb5

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

Reply via email to