1 |
commit: f313f3c5de9fe1e52ef4abc62935090a299a51b8 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 27 16:52:39 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 27 16:52:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=f313f3c5 |
7 |
|
8 |
etc/profile: remove comments about whoami |
9 |
|
10 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=587612 |
11 |
|
12 |
etc/profile | 4 ---- |
13 |
1 file changed, 4 deletions(-) |
14 |
|
15 |
diff --git a/etc/profile b/etc/profile |
16 |
index 2dee463..11336fb 100644 |
17 |
--- a/etc/profile |
18 |
+++ b/etc/profile |
19 |
@@ -22,10 +22,6 @@ umask 022 |
20 |
# There's no real reason to exclude sbin paths from the normal user, |
21 |
# but it can make tab-completion easier when they aren't in the |
22 |
# user's PATH to pollute the executable namespace. |
23 |
-# |
24 |
-# It is intentional in the following line to use || instead of -o. |
25 |
-# This way the evaluation can be short-circuited and calling whoami is |
26 |
-# avoided. |
27 |
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then |
28 |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}" |
29 |
else |