FS#72177 - [opencascade] /etc/profile.d unnecessarely installed as executable

Attached to Project: Community Packages
Opened by Emanuele Torre (emanuele6) - Monday, 20 September 2021, 04:24 GMT
Last edited by George Rawlinson (rawlinsong) - Tuesday, 11 January 2022, 22:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
George Rawlinson (rawlinsong)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Hello.
I know this package is outdated, but this is a very simple "bug" to fix.

This package installs an /etc/profile.d/ file as executable
unnecessarly; /etc/profile.d/ files only need to be readable.

Most other packages, that don't incorrectly install /etc/profile.d/
files as executables, install them with 644 permissions; which is the
most appropriate set of permission for /etc/profile.d/ files.

All it takes to fix this is change this line of the PKGBUILD file from:

install -Dm755 "$srcdir/opencascade.sh" "$pkgdir/etc/profile.d/opencascade.sh"

to:

install -Dm644 "$srcdir/opencascade.sh" "$pkgdir/etc/profile.d/opencascade.sh"

Cheers,
emanuele6
This task depends upon

Closed by  George Rawlinson (rawlinsong)
Tuesday, 11 January 2022, 22:51 GMT
Reason for closing:  Fixed

Loading...