diff --git a/lib/portage/dbapi/vartree.py b/lib/portage/dbapi/vartree.py index 0c41d408c3..590bca92e8 100644 --- a/lib/portage/dbapi/vartree.py +++ b/lib/portage/dbapi/vartree.py @@ -5753,8 +5753,8 @@ def mergeme( if bsd_chflags: bsd_chflags.lchflags(mydest, dflags) - os.chmod(mydest, mystat[0]) - os.chown(mydest, mystat[4], mystat[5]) + os.chmod(mydest, mymode) + os.chown(mydest, mystat[stat.ST_UID], mystat[stat.ST_GID]) showMessage(f">>> {mydest}/\n") else: try: @@ -5774,8 +5774,8 @@ def mergeme( else: raise del e - os.chmod(mydest, mystat[0]) - os.chown(mydest, mystat[4], mystat[5]) + os.chmod(mydest, mymode) + os.chown(mydest, mystat[stat.ST_UID], mystat[stat.ST_GID]) showMessage(f">>> {mydest}/\n") try: