shell namespace pollution with /etc/profile.d/kde.{csh,sh} in RHEL 7.
Issue
-
Due to a change for RHEL7, the file
/etc/profile.d/kde.shandkde.cshare now leaving the shell variablelibdirstill set when passing control to the users' shell environments. The script should have anunset libdirline tacked on the end of it. -
Also, the
/etc/profile.d/kde.{csh,sh}files are packaged with execute permissions. This is unnecessary and inappropriate for sourced shell files. If you look at the other files under/etc/profile.d, you'll see all of them are mode 0644, not an extraneous 0755.
Environment
- Red Hat Enterprise Linux (RHEL) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.