Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24739 - [libtrash] Erroneous message during install

Attached to Project: Community Packages
Opened by Taylor Hedberg (tmhedberg) - Thursday, 16 June 2011, 17:13 GMT
Last edited by Thomas Dziedzic (tomd123) - Friday, 17 June 2011, 02:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

When installing libtrash (v3.2-2), the following message is displayed:

>> To enable libtrash at login:
>> chmod 755 /etc/profile.d/libtrash.sh

This is incorrect, as the default /etc/profile does not check whether a script in /etc/profile.d is executable before sourcing it, only whether it is readable. Since /etc/profile.d/libtrash.sh is installed with mode 644, this means that libtrash will always be enabled at login even if the user has not set the script as executable.

Probably, the script should be renamed to libtrash.sh.disabled (or something similar), so that /etc/profile won't find it at all when searching for *.sh scripts to source, and the install-time message should be updated to reflect this.
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Friday, 17 June 2011, 02:44 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Moved to AUR

Loading...