aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2022-04-18 18:18:40 +0200
committerPapoteur <papoteur@mageia.org>2022-04-18 18:18:40 +0200
commitaf25f5ac17e59b9fb9b3fd82092b1ab82ca54e43 (patch)
tree7de76ec788b93bccafcc9d7950175f2965d16d5e
parent72dfa7979cde523dced4b231bc6b0b2ceb5165f4 (diff)
downloadmsec-af25f5ac17e59b9fb9b3fd82092b1ab82ca54e43.tar
msec-af25f5ac17e59b9fb9b3fd82092b1ab82ca54e43.tar.gz
msec-af25f5ac17e59b9fb9b3fd82092b1ab82ca54e43.tar.bz2
msec-af25f5ac17e59b9fb9b3fd82092b1ab82ca54e43.tar.xz
msec-af25f5ac17e59b9fb9b3fd82092b1ab82ca54e43.zip
Fix console displaying message "-bash: TMOUT: readonly variable" (mga#16356)
-rwxr-xr-xprofile.d/msec.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/profile.d/msec.sh b/profile.d/msec.sh
index 76508ae..4a902e7 100755
--- a/profile.d/msec.sh
+++ b/profile.d/msec.sh
@@ -1,7 +1,8 @@
# shell security options
-if [ -r /etc/security/shell ]; then
- . /etc/security/shell
+if [ -z "$SECSHELL" -a -r /etc/security/shell ]; then
+ . /etc/security/shell
+ export SECSHELL=1
fi
if [ `id -u` -ge 500 ]; then