1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

appliers/file_cp.py: change string to int argument for chmod to octal int

This commit is contained in:
Evgeny Sinelnikov 2022-12-11 07:00:03 +04:00 committed by Valery Sinelnikov
parent 5be7cc14b0
commit 45bf77a64a

View File

@ -77,9 +77,9 @@ class Files_cp:
def set_read_only(self, targetFile):
if self.readOnly:
shutil.os.chmod(targetFile, int('444', base = 8))
shutil.os.chmod(targetFile, 0o444)
else:
shutil.os.chmod(targetFile, int('664', base = 8))
shutil.os.chmod(targetFile, 0o664)
def _create_action(self):
for fromFile in self.fromPathFiles: