aboutsummaryrefslogtreecommitdiffstats
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:20 +0000
commit7f7126211170439ac1d7d72e980786ce0edb7bb7 (patch)
treedd806d5937cce3a68f44310fc6482a0b3ebed779
parentd411b097d810c386d35dc561f8812bb3f35c9a36 (diff)
downloadbitbake-1.42.tar.gz
bitbake-1.42.tar.bz2
bitbake-1.42.zip
lib/bb/utils.py: Preserve ownership of symlink1.42
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 7aaf9309..95e73f22 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))