From 94bcd938b8728cc989e643c536a0997552f9f4e3 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 24 Jul 2018 15:35:59 -0600 Subject: [PATCH] ipaclient-install: chmod needs octal permissions Fixes incorrect usage introduced in 792adebfabb456d154164387fb7e60acb30f4325 https://pagure.io/freeipa/issue/7650 Signed-off-by: Orion Poplawski Reviewed-By: Rob Crittenden --- ipaclient/install/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index befd040aaac..627351ac213 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -673,7 +673,7 @@ def configure_krb5_conf( os.path.basename(paths.KRB5_FREEIPA) + ".template" ) shutil.copy(template, paths.KRB5_FREEIPA) - os.chmod(paths.KRB5_FREEIPA, 0x644) + os.chmod(paths.KRB5_FREEIPA, 0o644) # Then, perform the rest of our configuration into krb5.conf itself. krbconf = IPAChangeConf("IPA Installer")