[pacman-dev] dangerous symlink handling with --root option

Xavier shiningxc at gmail.com
Tue Aug 21 10:31:30 EDT 2007


On Tue, Aug 21, 2007 at 10:16:19AM -0400, Mister Dobalina wrote:
> > $ ls -l foo/bin/sh
> > lrwxrwxrwx 1 root root 4 mai 15 21:14 foo/bin/sh ->
> > bash*
> > $ ls -l foo/bin/sleep
> > -rwxr-xr-x 1 root root 14380 aoû 16 22:13
> > foo/bin/sleep*
> 
> foo/bin/sh -> bash is a relative symlink, points to
> the same directory that the link itself is in. And
> foo/bin/sleep is indeed the actually binary as it is
> supposed to be installed. But you should really be
> trying
> 
> # ls -l foo/usr/bin/sleep 
> 
> to see where it points.
> 

oops, yes, I was looking at the wrong one ;)

> > But even then, all other symlinks I've in the --root
> > are correct, they don't
> > point to somewhere outside it.
> 
> I guess it depends on whether the package maintainer
> made it a relative or absolute symlink?
>  

So isn't it a bug in the package rather than in pacman?
Shouldn't there be only relative symlinks?




More information about the pacman-dev mailing list