]> code.ossystems Code Review - openembedded-core.git/commit
chrpath: properly handle rootdir with '..' in path
authorMatt Cowell <matt.cowell@nsn.com>
Thu, 17 Apr 2014 19:23:13 +0000 (14:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 May 2014 11:24:21 +0000 (12:24 +0100)
commit753cfcadd8cc683e69b6707b823dc49dfb34ab0b
tree066d03526f8ea979ddaa5e169fc401f06455ba3b
parent510e64d90d3ef2f9757bfa148e8cc09e4834051d
chrpath: properly handle rootdir with '..' in path

When there is a '..' in the rootdir path, rootdir will not be a substring of
fpath.  This causes an incorrect rpath of the difference between the workdir
and the sysroot to be computed, which is incorrect.  Normalizing basedir
fixes this issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/chrpath.bbclass