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:
parent
5be7cc14b0
commit
45bf77a64a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user