diff options
Diffstat (limited to 'ipaserver/install/certs.py')
-rw-r--r-- | ipaserver/install/certs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py index 564332e6f..e8084950e 100644 --- a/ipaserver/install/certs.py +++ b/ipaserver/install/certs.py @@ -293,7 +293,7 @@ class CertDB(object): /usr/lib[64]/ipa/certmonger. """ if command is not None and not os.path.isabs(command): - if sys.maxsize > 2**32L: + if sys.maxsize > 2**32: libpath = 'lib64' else: libpath = 'lib' @@ -647,7 +647,7 @@ class CertDB(object): def publish_ca_cert(self, location): shutil.copy(self.cacert_fname, location) - os.chmod(location, 0444) + os.chmod(location, 0o444) def export_pem_cert(self, nickname, location): return self.nssdb.export_pem_cert(nickname, location) |