FS#15675 - pacman can not determine ownership of dangling symlinks
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Saturday, 25 July 2009, 02:57 GMT
Last edited by Allan McRae (Allan) - Sunday, 26 July 2009, 02:40 GMT
Opened by Allan McRae (Allan) - Saturday, 25 July 2009, 02:57 GMT
Last edited by Allan McRae (Allan) - Sunday, 26 July 2009, 02:40 GMT
|
Details
Proof by example:
> ls -l /usr/bin/vpe lrwxrwxrwx 1 root root 40 2009-06-21 10:26 /usr/bin/vpe -> /usr/share/texmf-dist/scripts/vpe/vpe.pl > ls -l /usr/share/texmf-dist/scripts/vpe/vpe.pl ls: cannot access /usr/share/texmf-dist/scripts/vpe/vpe.pl: No such file or directory > pacman -Qo /usr/bin/vpe error: failed to read file '/usr/bin/vpe': No such file or directory > grep -R "usr/bin/vpe" /var/lib/pacman/local/ /var/lib/pacman/local/texlive-bin-2008-5/files:usr/bin/vpe Note that non-dangling symlinks are handled correctly: e.g > ls -l /usr/bin/vi lrwxrwxrwx 1 root root 12 2009-07-24 10:50 /usr/bin/vi -> /usr/bin/vim > pacman -Qo /usr/bin/vi error: No package owns /usr/bin/vi > pacman -Qo /usr/bin/vim /usr/bin/vim is owned by vim 7.2.234-1 |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 26 July 2009, 02:40 GMT
Reason for closing: Fixed
Additional comments about closing: Git commit 6fa5f207
Sunday, 26 July 2009, 02:40 GMT
Reason for closing: Fixed
Additional comments about closing: Git commit 6fa5f207
Comment by Xavier (shining) -
Saturday, 25 July 2009, 18:01 GMT
This seems easy to fix
Comment by Dan McGee (toofishes) -
Saturday, 25 July 2009, 22:25 GMT
Yeah that was my initial thought to fix this as well, seems like a
no brainer.
0002-Use-lstat-instead-of-sta...
(0.9 KiB)