diff options
author | 2017-06-08 13:39:13 -0500 | |
---|---|---|
committer | 2017-06-08 13:39:13 -0500 | |
commit | ec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63 (patch) | |
tree | f0ba7b3dad5d99d33a59b1568351487c6b7d356c /etc | |
parent | etc/services: add etcd services (diff) | |
download | baselayout-ec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63.tar.gz baselayout-ec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63.tar.bz2 baselayout-ec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63.zip |
etc/profile: replace PATH with ROOTPATH if the user is rootbaselayout-2.4
This is part of the following bug.
X-Gentoo-Bug: 255695
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255695
Diffstat (limited to 'etc')
-rw-r--r-- | etc/profile | 4 |
1 files changed, 1 insertions, 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 |