e0ab38
From a600614ba36e192b168fcb4f9547c70fdc304707 Mon Sep 17 00:00:00 2001
e0ab38
From: Martin Basti <mbasti@redhat.com>
e0ab38
Date: Tue, 22 Dec 2015 16:34:32 +0100
e0ab38
Subject: [PATCH] Fix: replace mkdir with chmod
e0ab38
e0ab38
In original patches, extra mkdir has been added instead of chmod.
e0ab38
e0ab38
https://fedorahosted.org/freeipa/ticket/5520
e0ab38
e0ab38
Reviewed-By: Martin Basti <mbasti@redhat.com>
e0ab38
---
e0ab38
 ipaplatform/base/services.py | 3 ++-
e0ab38
 1 file changed, 2 insertions(+), 1 deletion(-)
e0ab38
e0ab38
diff --git a/ipaplatform/base/services.py b/ipaplatform/base/services.py
e0ab38
index b068a2f3b00549fffa20feffb6a3158382fc7e9a..d280557c4f1c8ba353ba093736d577cc6c2a47a9 100644
e0ab38
--- a/ipaplatform/base/services.py
e0ab38
+++ b/ipaplatform/base/services.py
e0ab38
@@ -421,7 +421,8 @@ class SystemdService(PlatformService):
e0ab38
 
e0ab38
             try:
e0ab38
                 if not ipautil.dir_exists(srv_tgt):
e0ab38
-                    os.mkdir(srv_tgt, 0755)
e0ab38
+                    os.mkdir(srv_tgt)
e0ab38
+                    os.chmod(srv_tgt, 0755)
e0ab38
                 if os.path.exists(srv_lnk):
e0ab38
                     # Remove old link
e0ab38
                     os.unlink(srv_lnk)
e0ab38
-- 
e0ab38
2.4.3
e0ab38