FS#79996 - [pysolfc-cardsets] Some cardsets are installed with wrong permissions

Attached to Project: Arch Linux
Opened by Denilson Sá Maia (denilsonsa) - Wednesday, 18 October 2023, 10:51 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 18 October 2023, 20:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In pysolfc-cardsets 2.2-1, there are several cardsets installed with wrong permissions. Look:

$ ls -l /usr/share/PySolFC

drwxr-xr-x 2 root root 4096 Jun 6 16:29 cardset-neo
drwx------ 2 root root 4096 Jun 6 16:29 cardset-neo-hex
drwx------ 2 root root 4096 Jun 6 16:29 cardset-neo-tarock
drwx------ 2 root root 4096 Jun 6 16:29 cardset-next-matrix


I've counted 9 cardsets that don't have the permission to be read by normal users.
Additionally, there are two `COPYRIGHT` files with +x permssion:

-rwxr-xr-x 1 root root 474 May 11 00:14 cardset-hannover-court/COPYRIGHT
-rwxr-xr-x 1 root root 474 May 11 00:14 cardset-hannover-hex/COPYRIGHT

I'll open an upstream issue in a few minutes: https://github.com/shlomif/PySolFC-Cardsets/issues
Meanwhile, the PKGBUILD could potentially make sure the permissions are sane.
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 18 October 2023, 20:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  See comments
Comment by Denilson Sá Maia (denilsonsa) - Wednesday, 18 October 2023, 11:07 GMT Comment by Toolybird (Toolybird) - Wednesday, 18 October 2023, 20:24 GMT
The problem was with the older pkg (see output below). It is fixed with the latest pkg. You'll only see the problem if upgrading, not when installing fresh. Therefore the solution is to simply remove the pkg then reinstall the latest.

(1/1) upgrading pysolfc-cardsets
warning: directory permissions differ on /usr/share/PySolFC/cardset-dashavatara-ganjifa-xl/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-louie-mantia-hanafuda/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-matrix-glow/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-me-uk/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-mughal-ganjifa-xl/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-neo-hex/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-neo-tarock/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-next-matrix/
filesystem: 700 package: 755
warning: directory permissions differ on /usr/share/PySolFC/cardset-uni-mahjongg/
filesystem: 700 package: 755

Loading...