FS#72178 - [mercurial] package installs an /etc/profile.d/ file as executable unnecessarily

Attached to Project: Arch Linux
Opened by Emanuele Torre (emanuele6) - Monday, 20 September 2021, 04:33 GMT
Last edited by Antonio Rojas (arojas) - Friday, 24 September 2021, 17:39 GMT
Task Type Bug Report
Category Packages: Extra
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 0
Private No

Details

Description:
This package installs an /etc/profile.d/ file ( mercurial.sh ) as
executable unnecessarily; /etc/profile.d/ files only need to be
readable since they are "sourced", not executed.

It would be nicer to install it with 644 permissions (as most other
packages do).

All that needs to change is this line of the PKGBUILD file from:

install -m755 "$srcdir/mercurial.profile" "$pkgdir/etc/profile.d/mercurial.sh"

to:
install -m644 "$srcdir/mercurial.profile" "$pkgdir/etc/profile.d/mercurial.sh"

Cheers,
emanuele6
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 24 September 2021, 17:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  mercurial 5.9.1-2

Loading...