Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
aaa_base.22557
git-11-b20083a930f766939f47dddc66d089c9fee5d38a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-11-b20083a930f766939f47dddc66d089c9fee5d38a.patch of Package aaa_base.22557
commit b20083a930f766939f47dddc66d089c9fee5d38a Author: Ruediger Oertel <ro@suse.de> Date: Thu Oct 10 15:28:04 2019 +0200 check if variables can be set before modifying them to avoid warnings on login with a restricted shell (bsc#1138869) diff --git a/files/etc/bash.bashrc b/files/etc/bash.bashrc index 85be9f6..36f7db5 100644 --- a/files/etc/bash.bashrc +++ b/files/etc/bash.bashrc @@ -8,9 +8,14 @@ # # Check which shell is reading this file -# -noprofile=false -restricted=false +# check if variables are read-only before setting them +# for example in a restricted shell +if unset noprofile 2>/dev/null ; then + noprofile=false +fi +if unset restricted 2>/dev/null ; then + restricted=false +fi : ${_is_save:=unset} if test -z "$is" ; then if test -f /proc/mounts ; then
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor