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:20 +0000 |
commit | 7f7126211170439ac1d7d72e980786ce0edb7bb7 (patch) | |
tree | dd806d5937cce3a68f44310fc6482a0b3ebed779 | |
parent | d411b097d810c386d35dc561f8812bb3f35c9a36 (diff) | |
download | bitbake-7f7126211170439ac1d7d72e980786ce0edb7bb7.tar.gz |
lib/bb/utils.py: Preserve ownership of symlink2019-04.4-warrior
Yocto Bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13806
Uncomment lchown() to preserve ownership of symlink.
Signed-off-by: Daisuke Yamane <daisuke.yamane@cybertrust.co.jp>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 7aaf9309b..95e73f224 100644 --- a/lib/bb/utils.py +++ b/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)) |