File git-30-4ad097303df998e830fffeda8c5a990d0bec6de9.patch of Package aaa_base.4819

From 4ad097303df998e830fffeda8c5a990d0bec6de9 Mon Sep 17 00:00:00 2001
From: Tiago Salem Herrmann <therrmann@suse.com>
Date: Mon, 31 Jul 2017 16:37:30 -0300
Subject: [PATCH] Unset id in csh.cshrc instead of profile.csh (bsc#1049577)

---
 files/etc/csh.cshrc             | 1 +
 files/etc/profile.d/profile.csh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/files/etc/csh.cshrc b/files/etc/csh.cshrc
index cb41326..2e21c2f 100644
--- a/files/etc/csh.cshrc
+++ b/files/etc/csh.cshrc
@@ -44,6 +44,7 @@ set echo_style=both
 #
 if (! ${?UID}  ) set -r  UID=${uid}
 if (! ${?EUID} ) set -r EUID="`${id} -u`"
+unset id
 
 #
 # Avoid trouble with Emacs shell mode
diff --git a/files/etc/profile.d/profile.csh b/files/etc/profile.d/profile.csh
index e69dcc1..b94a381 100644
--- a/files/etc/profile.d/profile.csh
+++ b/files/etc/profile.d/profile.csh
@@ -154,7 +154,7 @@ if ( ${?loginsh} && ${?console_magic} && "$tty" =~ tty* ) then
     endif
 endif
 
-unset val arr id
+unset val arr
 unset noglob
 #
 # end of profile.csh
-- 
2.12.3

openSUSE Build Service is sponsored by