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:34 +0000 |
| commit | 4c773c7b03fb4596cd3873261de438dfd7b44158 (patch) | |
| tree | 312e61d821f2a5a4e094434c5fb436b2d3e46565 | |
| parent | f475afc5df0837532dcd0f3a831ddc3aec8941f1 (diff) | |
| download | poky-4c773c7b03fb4596cd3873261de438dfd7b44158.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: 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.py | 2 |
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): | |||
| 855 | if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): | 855 | if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): |
| 856 | os.unlink(dest) | 856 | os.unlink(dest) |
| 857 | os.symlink(target, dest) | 857 | os.symlink(target, dest) |
| 858 | #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) | 858 | os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) |
| 859 | return os.lstat(dest) | 859 | return os.lstat(dest) |
| 860 | except Exception as e: | 860 | except Exception as e: |
| 861 | logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e)) | 861 | logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e)) |
