summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaisuke Yamane <daisuke.yamane@cybertrust.co.jp>2020-02-22 06:17:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-06 17:25:34 +0000
commit4c773c7b03fb4596cd3873261de438dfd7b44158 (patch)
tree312e61d821f2a5a4e094434c5fb436b2d3e46565
parentf475afc5df0837532dcd0f3a831ddc3aec8941f1 (diff)
downloadpoky-warrior.tar.gz
poky-warrior.tar.bz2
poky-warrior.zip
bitbake: lib/bb/utils.py: Preserve ownership of symlinkwarrior
Yocto Bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13806 Uncomment lchown() to preserve ownership of symlink. (Bitbake rev: 7f7126211170439ac1d7d72e980786ce0edb7bb7) Signed-off-by: Daisuke Yamane <daisuke.yamane@cybertrust.co.jp> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 7aaf9309bd..95e73f2241 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -855,7 +855,7 @@ def copyfile(src, dest, newmtime = None, sstat = None):
if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]):
os.unlink(dest)
os.symlink(target, dest)
- #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
+ os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
return os.lstat(dest)
except Exception as e:
logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e))