/etc/profile has bash scripting bug
Bug #683311 reported by
nacitar sevaht
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Debian) |
New
|
Undecided
|
Unassigned | ||
base-files (Ubuntu) |
In Progress
|
Medium
|
Abhishek kumar singh |
Bug Description
/etc/profile loops over scripts in /etc/profile.d/ and checks them for readability via "if [ -r $i ]; then", however if someone was to make a script with a space in the name, that wouldn't work, and thus you'd need "$i" instead of just $i... bad practice to use spaces in this case, but a bash script bug nonetheless. I can't figure out what package /etc/profile is part of, or how to report a "base system" sort of bug, but nonetheless this script is automatically provided by the distro and that's a (somewhat insignificant) bug. :)
Verified on ubuntu 10.04 LTS x64
Related branches
lp:~abhishekkumarsingh-cse/ubuntu/oneiric/base-files/oneiric
On hold
for merging
into
lp:ubuntu/oneiric/base-files
- Ubuntu branches: Pending requested
-
Diff: 28 lines (+8/-2)2 files modifieddebian/changelog (+6/-0)
share/profile (+2/-2)
Changed in ubuntu: | |
status: | New → Invalid |
affects: | ubuntu → bash-completion (Ubuntu) |
tags: | added: lucid maverick natty |
Changed in base-files (Ubuntu): | |
assignee: | nobody → Abhishek kumar singh (abhishekkumarsingh-cse) |
status: | New → In Progress |
no longer affects: | null |
To post a comment you must log in.
Forgot... and the line just below that where the file gets sourced via ". $1" also needs spaces around the $1