diff options
author | Daisuke Yamane <daisuke.yamane@cybertrust.co.jp> | 2020-02-22 06:17:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-06 17:25:27 +0000 |
commit | 7f5914015b613c9b66960b79f802917f8829aff4 (patch) | |
tree | 178e607a1564788e9dbce43d4b1176f83ecdc12b /bitbake/lib | |
parent | 5e1f52edb7a9f790fb6cb5d96502f3690267c1b1 (diff) | |
download | poky-7f5914015b613c9b66960b79f802917f8829aff4.tar.gz |
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: 6836184ef5220488a1127413c7d2e523fc37e2e9)
Signed-off-by: Daisuke Yamane <daisuke.yamane@cybertrust.co.jp>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index d65265c461..0b6bb0454c 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -851,7 +851,7 @@ def copyfile(src, dest, newmtime = None, sstat = None): | |||
851 | if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): | 851 | if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): |
852 | os.unlink(dest) | 852 | os.unlink(dest) |
853 | os.symlink(target, dest) | 853 | os.symlink(target, dest) |
854 | #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) | 854 | os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) |
855 | return os.lstat(dest) | 855 | return os.lstat(dest) |
856 | except Exception as e: | 856 | except Exception as e: |
857 | logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e)) | 857 | logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e)) |