From 4c773c7b03fb4596cd3873261de438dfd7b44158 Mon Sep 17 00:00:00 2001 From: Daisuke Yamane Date: Sat, 22 Feb 2020 06:17:14 +0000 Subject: bitbake: lib/bb/utils.py: Preserve ownership of symlink 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3-54-g00ecf