File git-29-b9a57d5a64b3d2d09bc591f894f6558f1945df70.patch of Package aaa_base.4819
From b9a57d5a64b3d2d09bc591f894f6558f1945df70 Mon Sep 17 00:00:00 2001
From: Tiago Salem Herrmann <therrmann@suse.com>
Date: Fri, 21 Jul 2017 11:39:04 -0300
Subject: [PATCH] unset unused variables on profile files (bsc#1049577)
---
files/etc/bash.bashrc | 1 +
files/etc/csh.login | 1 +
files/etc/profile | 1 +
files/etc/profile.d/profile.csh | 1 +
files/etc/profile.d/profile.sh | 2 +-
5 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/files/etc/bash.bashrc b/files/etc/bash.bashrc
--- a/files/etc/bash.bashrc
+++ b/files/etc/bash.bashrc
@@ -348,6 +348,7 @@ zsh) test -s /etc/zsh.zshrc.local &&
ash) test -s /etc/ash.ashrc.local && . /etc/ash.ashrc.local
esac
test -s /etc/sh.shrc.local && . /etc/sh.shrc.local
+unset is
if test -n "$restricted" -a -z "$PROFILEREAD" ; then
PATH=/usr/lib/restricted/bin
diff --git a/files/etc/csh.login b/files/etc/csh.login
--- a/files/etc/csh.login
+++ b/files/etc/csh.login
@@ -59,6 +59,7 @@ endif
if (! ${?UID} ) set -r UID=${uid}
if (! ${?EUID} ) set -r EUID="`${id} -u`"
if (! ${?USER} ) set USER="`${id} -un`"
+unset id
if (! ${?HOME} ) set HOME=""
if (! ${?MAIL} ) setenv MAIL /var/spool/mail/$USER
if ( -x /bin/uname ) then
diff --git a/files/etc/profile b/files/etc/profile
--- a/files/etc/profile
+++ b/files/etc/profile
@@ -380,6 +380,7 @@ case "$-" in
date
fi
esac
+unset is
#
# End of /etc/profile
diff --git a/files/etc/profile.d/profile.csh b/files/etc/profile.d/profile.csh
--- a/files/etc/profile.d/profile.csh
+++ b/files/etc/profile.d/profile.csh
@@ -154,6 +154,7 @@ if ( ${?loginsh} && ${?console_magic} &&
endif
endif
+unset val arr id
unset noglob
#
# end of profile.csh
diff --git a/files/etc/profile.d/profile.sh b/files/etc/profile.d/profile.sh
--- a/files/etc/profile.d/profile.sh
+++ b/files/etc/profile.d/profile.sh
@@ -134,7 +134,7 @@ if test -z "$WINDOWMANAGER" ; then
PATH=$SAVEPATH
unset SAVEPATH desktop
fi
-unset DEFAULT_WM
+unset DEFAULT_WM line
export WINDOWMANAGER
if test -n "$CONSOLE_MAGIC" ; then