projects
/
clearscm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
62f7793
)
Fixed .logout
author
hn06511
<hn06511@AZ25JZHXKB2D.gddsi.com>
Thu, 7 Jun 2018 17:44:50 +0000
(10:44 -0700)
committer
hn06511
<hn06511@AZ25JZHXKB2D.gddsi.com>
Thu, 7 Jun 2018 17:44:50 +0000
(10:44 -0700)
rc/bash_login
patch
|
blob
|
history
diff --git
a/rc/bash_login
b/rc/bash_login
index
8207eae
..
d390e56
100644
(file)
--- a/
rc/bash_login
+++ b/
rc/bash_login
@@
-121,8
+121,11
@@
if [ -r /etc/bash_completion -a $ARCHITECTURE != "cygwin" ]; then
source /etc/bash_completion
fi
source /etc/bash_completion
fi
-if [ -x ~/.rc/logout ]; then
- trap "~/.rc/logout" 0
+# We specify /home/$USER here so that when we sudo to another user
+# we will only trap logout if that user also has a ~/.rc/logout
+# (doubtfull).
+if [ -x /home/$USER/.rc/logout ]; then
+ trap "/home/$USER/.rc/logout" 0
fi
# ClearCase Stuff
fi
# ClearCase Stuff