1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-10 13:17:58 +03:00

Changed file permissions when copying

This commit is contained in:
Valery Sinelnikov 2023-11-27 11:03:30 +04:00
parent 179b16baa4
commit b8dc00443f

View File

@ -117,12 +117,12 @@ class Files_cp:
if self.readOnly:
shutil.os.chmod(targetFile, 0o555)
else:
shutil.os.chmod(targetFile, 0o775)
shutil.os.chmod(targetFile, 0o755)
else:
if self.readOnly:
shutil.os.chmod(targetFile, 0o444)
else:
shutil.os.chmod(targetFile, 0o664)
shutil.os.chmod(targetFile, 0o644)
def _create_action(self):
logdata = dict()