diff options
Diffstat (limited to 'ipa-client/ipaclient')
-rw-r--r-- | ipa-client/ipaclient/ipa_certupdate.py | 2 | ||||
-rw-r--r-- | ipa-client/ipaclient/ipachangeconf.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ipa-client/ipaclient/ipa_certupdate.py b/ipa-client/ipaclient/ipa_certupdate.py index a9530674c..26e02ea33 100644 --- a/ipa-client/ipaclient/ipa_certupdate.py +++ b/ipa-client/ipaclient/ipa_certupdate.py @@ -164,7 +164,7 @@ class CertUpdate(admintool.AdminTool): self.update_file(paths.CA_CRT, certs) - def update_file(self, filename, certs, mode=0444): + def update_file(self, filename, certs, mode=0o444): certs = (c[0] for c in certs if c[2] is not False) try: x509.write_certificate_list(certs, filename) diff --git a/ipa-client/ipaclient/ipachangeconf.py b/ipa-client/ipaclient/ipachangeconf.py index edf34f5ae..2c3185716 100644 --- a/ipa-client/ipaclient/ipachangeconf.py +++ b/ipa-client/ipaclient/ipachangeconf.py @@ -481,7 +481,7 @@ class IPAChangeConf: # we want to fail in that case shutil.copy2(file, (file + ".ipabkp")) - f = openLocked(file, 0644) + f = openLocked(file, 0o644) oldopts = self.parse(f) @@ -520,7 +520,7 @@ class IPAChangeConf: # The orign file did not exist pass - f = openLocked(file, 0644) + f = openLocked(file, 0o644) # Trunkate f.seek(0) |