Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#7197 - wrong permissions when extracting

Attached to Project: Pacman
Opened by Roman Kyrylych (Romashka) - Thursday, 17 May 2007, 21:52 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 28 May 2007, 22:48 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity High
Priority High
Reported Version 3.0.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

[root@home ~]# mkdir test
[root@home ~]# pacman -Ud /var/cache/pacman/pkg/filesystem-0.8-7.pkg.tar.gz --root=/root/test
loading package data... done.
cleaning up... done.
(1/1) checking for file conflicts [#####################] 100%
error: could not open file /root/test/var/lib/pacman/local//filesystem-0.8-7/depends: No such file or directory
(1/1) installing filesystem [#####################] 100%
[root@home ~]# ls test
bin dev home mnt proc sbin sys usr
boot etc lib opt root srv tmp var
[root@home ~]# ls test -l
total 64
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 bin
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 boot
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 dev
drwxr-xr-x 4 root root 4096 2007-05-13 16:37 etc
drwxr-xr-x 3 root root 4096 2007-05-13 16:37 home
drwxr-xr-x 3 root root 4096 2007-05-13 16:37 lib
drwxr-xr-x 5 root root 4096 2007-05-13 16:37 mnt
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 opt
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 proc
drwxr-x--- 2 root root 4096 2007-05-13 16:37 root
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 sbin
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 srv
drwxr-xr-x 2 root root 4096 2007-05-13 16:37 sys
drwxr-xr-x 2 root root 4096 2007-05-18 00:09 tmp
drwxr-xr-x 10 root root 4096 2007-05-13 16:37 usr
drwxr-xr-x 13 root root 4096 2007-05-18 00:09 var
[root@home ~]#

/tmp has 41777 permissions in filesystem-0.8-7.pkg.tar.gz
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Monday, 28 May 2007, 22:48 GMT
Reason for closing:  Fixed
Comment by Aaron Griffin (phrakture) - Thursday, 17 May 2007, 21:54 GMT
I'm kind of confused by all this text... what's the actual error here?
Comment by Roman Kyrylych (Romashka) - Thursday, 17 May 2007, 21:56 GMT
pacman extracts tmp with wrong permissions:
drwxr-xr-x 2 root root 4096 2007-05-18 00:09 tmp
/tmp has 41777 permissions in filesystem-0.8-7.pkg.tar.gz (writeable by world and sticky)
Comment by Roman Kyrylych (Romashka) - Thursday, 17 May 2007, 22:14 GMT Comment by Roman Kyrylych (Romashka) - Friday, 18 May 2007, 11:13 GMT
fix applied to CVS
Comment by Aaron Griffin (phrakture) - Friday, 18 May 2007, 15:17 GMT
I think... it needs testing some more, but my initial checks seemed to work fine... if anyone can build from CVS/git and check, that'd be great
Comment by Andrew Fyfe (space-m0nkey) - Monday, 28 May 2007, 22:42 GMT
Tested, and it works.

Loading...