FS#22036 - [filesystem] /etc/profile checks scripts for executable bit but sources them
Attached to Project:
Arch Linux
Opened by Dave Reisner (falconindy) - Thursday, 09 December 2010, 21:09 GMT
Last edited by Pierre Schmitz (Pierre) - Tuesday, 14 December 2010, 07:12 GMT
Opened by Dave Reisner (falconindy) - Thursday, 09 December 2010, 21:09 GMT
Last edited by Pierre Schmitz (Pierre) - Tuesday, 14 December 2010, 07:12 GMT
|
Details
/etc/profile shows some slightly confusing behavior in
reading the contents of /etc/profile.d. It tests for the
executable bit, but then sources the script (as it must, to
preserve environment). This causes issues with upstream
scripts mean to be placed in this directory that are not
shipped with the executable bit. bash_completion.sh, for
example, probably has never been sourced on a stock Arch
machine.
The profile script should probably just 'test -r' rather than 'test -x'. |
This task depends upon
In case you're interested, the "offending" .csh packages are: jdk, jre, glib2, openjdk6, nxclient, mozilla-common.