On 08/19/2012 03:06 AM, Richard Purdie wrote:
On Fri, 2012-08-17 at 08:53 -0700, Andy Ross wrote:
++ libdir_norm=`echo $libdir \
++ | sed 's/\/\+\.\(\/\+\|$\)/\//g' \
++ | sed 's/[^\/]\+\/\+\.\.\(\/\+\|$\)//g' \
++ | sed 's/\/\+/\//g' \
++ | sed 's/\(.\)\/$/\1/g'`
Can't we use func_norm_abspath here?
I have to admit I got a little confused reading that code (not that my
sed mess is significantly better, but at least I trust it because I
wrote it); but it looks to me like it's an abspath implementation on
the host filesystem (not the use of `pwd` in a few places). That will
work for pruning in this case, since the problem case is already an
absolute path to a host directory. But I don't see how it won't in
principle break things by expanding host paths.
Andy
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core