summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 8b739d7849..378e699e0c 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -807,8 +807,8 @@ def movefile(src, dest, newmtime = None, sstat = None):
807 return None # failure 807 return None # failure
808 try: 808 try:
809 if didcopy: 809 if didcopy:
810 os.lchown(dest, sstat[stat.ST_UID], sstat[stat.ST_GID]) 810 os.lchown(destpath, sstat[stat.ST_UID], sstat[stat.ST_GID])
811 os.chmod(dest, stat.S_IMODE(sstat[stat.ST_MODE])) # Sticky is reset on chown 811 os.chmod(destpath, stat.S_IMODE(sstat[stat.ST_MODE])) # Sticky is reset on chown
812 os.unlink(src) 812 os.unlink(src)
813 except Exception as e: 813 except Exception as e:
814 print("movefile: Failed to chown/chmod/unlink", dest, e) 814 print("movefile: Failed to chown/chmod/unlink", dest, e)