summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2017-06-08 13:39:13 -0500
committerWilliam Hubbs <williamh@gentoo.org>2017-06-08 13:39:13 -0500
commitec3d9fb5d4f9252bc524ad4c1fc901867cb3bb63 (patch)
treef0ba7b3dad5d99d33a59b1568351487c6b7d356c
parentetc/services: add etcd services (diff)
downloadbaselayout-2.4.tar.gz
baselayout-2.4.tar.bz2
baselayout-2.4.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
-rw-r--r--etc/profile4
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