summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2018-05-28 13:54:32 -0500
committerWilliam Hubbs <williamh@gentoo.org>2018-05-28 14:21:23 -0500
commit8974c87e2d0e243c0fc2503fac5b40f447fac65f (patch)
treedbe98df6614881cf37356659f4ad7db539a6cb03
parentetc/profile: typo fix (diff)
downloadbaselayout-8974c87e2d0e243c0fc2503fac5b40f447fac65f.tar.gz
baselayout-8974c87e2d0e243c0fc2503fac5b40f447fac65f.tar.bz2
baselayout-8974c87e2d0e243c0fc2503fac5b40f447fac65f.zip
profile: don't use ROOTPATH
Since PATH is supposed to be the same for everyone, we can now drop the code that handles ROOTPATH.
-rw-r--r--etc/profile8
1 files changed, 0 insertions, 8 deletions
diff --git a/etc/profile b/etc/profile
index 05584351..2afd51d9 100644
--- a/etc/profile
+++ b/etc/profile
@@ -18,14 +18,6 @@ export PAGER=${PAGER:-/usr/bin/less}
# 077 would be more secure, but 022 is generally quite realistic
umask 022
-# Set up PATH depending on whether we're root or a normal user.
-# There's no real reason to exclude sbin paths from the normal user,
-# 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="${ROOTPATH}"
-fi
-export PATH
unset ROOTPATH
# process *.sh files in /etc/profile.d