commit: 8974c87e2d0e243c0fc2503fac5b40f447fac65f
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon May 28 18:54:32 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon May 28 19:21:23 2018 +0000
URL: https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=8974c87e
profile: don't use ROOTPATH
Since PATH is supposed to be the same for everyone, we can now drop the
code that handles ROOTPATH.
etc/profile | 8 --------
1 file changed, 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