On 6/18/07, Xavier <shiningxc@gmail.com> wrote:
I found it weird that pacman -Ql listed two directories :
pacman -Ql | grep "/$" cups /var/spool/cups/tmp/ ttf-ms-fonts /tmp/ttf-ms-fonts/
I found the explanation here : http://bbs.archlinux.org/viewtopic.php?pid=259654#p259654
I think this code is wrong, but don't know how to fix it.. Why does it have to use stat for dir though ? Can't it just check for the trailing slash ?
And then, stat could be used for the feature request of this thread, ie checking that all files from package actually exist on the filesystem. But in this case, root access will be needed here, otherwise it'll get it wrong..
If you explain your logic a bit better and provide a patch actually fixing something, we'll be sure to take it. stat just seemed like the best way at the time to ensure that something was in fact a directory and not a file, symlink, etc. -Dan