Lightdm (and GDM) source .profile as bash, indirectly sourcing .bashrc
Bug #1482641 reported by
Murukesh Mohanan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson | ||
lightdm (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson |
Bug Description
The fix for https:/
BASH_VERSION= . "$CONFIG"
At the very least, a check should be done whether bash is the user's login shell. It can be done thus:
[ "$SHELL" != "/bin/bash" ] && BASH_VERSION=
. "$CONFIG"
utilizing `$SHELL` given it stores the login shell (http://
description: | updated |
description: | updated |
To post a comment you must log in.
Thanks for your report, Muru.
Even if the default ~/.bashrc is protected from being run through a test at the top of the file, I think this will take care of a few cases where users with custom configuration have been somewhat confused.