1 |
commit: 8974c87e2d0e243c0fc2503fac5b40f447fac65f |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 18:54:32 2018 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 28 19:21:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=8974c87e |
7 |
|
8 |
profile: don't use ROOTPATH |
9 |
|
10 |
Since PATH is supposed to be the same for everyone, we can now drop the |
11 |
code that handles ROOTPATH. |
12 |
|
13 |
etc/profile | 8 -------- |
14 |
1 file changed, 8 deletions(-) |
15 |
|
16 |
diff --git a/etc/profile b/etc/profile |
17 |
index 05584351..2afd51d9 100644 |
18 |
--- a/etc/profile |
19 |
+++ b/etc/profile |
20 |
@@ -18,14 +18,6 @@ export PAGER=${PAGER:-/usr/bin/less} |
21 |
# 077 would be more secure, but 022 is generally quite realistic |
22 |
umask 022 |
23 |
|
24 |
-# Set up PATH depending on whether we're root or a normal user. |
25 |
-# There's no real reason to exclude sbin paths from the normal user, |
26 |
-# but it can make tab-completion easier when they aren't in the |
27 |
-# user's PATH to pollute the executable namespace. |
28 |
-if [ "${EUID-}" = "0" ] || [ "${USER-}" = "root" ] ; then |
29 |
- PATH="${ROOTPATH}" |
30 |
-fi |
31 |
-export PATH |
32 |
unset ROOTPATH |
33 |
|
34 |
# process *.sh files in /etc/profile.d |