FS#7182 - pacman -Q --changelog works only as root
Attached to Project:
Pacman
Opened by Attila (attila) - Thursday, 17 May 2007, 06:18 GMT
Last edited by Xavier (shining) - Monday, 03 December 2007, 19:52 GMT
Opened by Attila (attila) - Thursday, 17 May 2007, 06:18 GMT
Last edited by Xavier (shining) - Monday, 03 December 2007, 19:52 GMT
|
Details
I created an own package using fakeroot (umask user: 007)
and includes a ChangeLog. As normal user i can't see it with
pacman (Fehler: Kein Änderungsprotokoll für 'PACKAGE'
verfügbar) and as root it works. The reason be the file
permissions of this Changelog:
-rw-r----- 1 root root An "find /var/lib/pacman/local -type f -perm 640" shows that the *.install files from my own packages has the same file permissions but this has for me more cosmetically character. |
This task depends upon
Closed by Xavier (shining)
Monday, 03 December 2007, 19:52 GMT
Reason for closing: Fixed
Additional comments about closing: fixed by Aaron in git, commit 5f811dc020.
Monday, 03 December 2007, 19:52 GMT
Reason for closing: Fixed
Additional comments about closing: fixed by Aaron in git, commit 5f811dc020.
Note to self: on DB extraction, use archive_entry_set_mode() and force DB to 644 across the board.
I can't confirm it was fixed though, the changelog kept the 400 permission when installing the package.
Sorry, I don't have time to investigate this issue now, but tomorrow or this week end, I can have a better look.
To Dan : I think you meant "as user", not "as root" :)
_alpm_unpack in util.c is only used for extracting the scriptlets and the databases.
The ChangeLog extraction is done in add.c , with every other files, and doesn't use the _alpm_unpack function.
http://code.phraktured.net/?p=pacman.git;a=commit;h=531772693e0aade8a577f33af3e3c91aac616d84
See also the commit above it for why I used 0644 for both. I need to test THAT commit much much more.