aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandriva/tmpdir.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandriva/tmpdir.sh b/mandriva/tmpdir.sh
index 9aaa65b7..87d984e8 100644
--- a/mandriva/tmpdir.sh
+++ b/mandriva/tmpdir.sh
@@ -2,8 +2,9 @@
# $Id$
# Set TMPDIR to ~/tmp and create it if directory not exist.
-if [ -f /etc/security/shell ];then
+if [ -z "$SECSHELL" -a -r /etc/security/shell ]; then
. /etc/security/shell
+ export SECSHELL=1
fi
if [[ "$SECURE_TMP" = "yes" ]];then