FS#43033 - [filesystem] locale.sh - insufficient quoting

Attached to Project: Arch Linux
Opened by Mantas Mikulėnas (grawity) - Sunday, 07 December 2014, 12:48 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 13 December 2014, 15:11 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

/etc/profile.d/locale.conf has this bit:

elif [ -n $HOME ] && [ -r $HOME/.config/locale.conf ]; then
. "$HOME/.config/locale.conf"
elif ...

it checks for whether $HOME is empty, but doesn't quote it properly, so the check would always return true ([ -n ] = true).
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 13 December 2014, 15:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  Committed to SVN trunk

Loading...