summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipaclient
diff options
context:
space:
mode:
authorMarko Myllynen <myllynen@redhat.com>2011-09-22 19:41:50 +0300
committerRob Crittenden <rcritten@redhat.com>2011-09-22 22:02:54 -0400
commit6c9b6548cc9640f04a1ef53aebb1ed7f779bf63c (patch)
tree436012bbce93a81f2005570d7110811705d215a5 /ipa-client/ipaclient
parentf42da4357eac7e64e803b53c78d6cff9175d20a4 (diff)
downloadfreeipa.git-6c9b6548cc9640f04a1ef53aebb1ed7f779bf63c.tar.gz
freeipa.git-6c9b6548cc9640f04a1ef53aebb1ed7f779bf63c.tar.xz
freeipa.git-6c9b6548cc9640f04a1ef53aebb1ed7f779bf63c.zip
Don't remove /tmp when removing temp cert dir
If /tmp happens to be empty os.removedirs() happily removes it... https://fedorahosted.org/freeipa/ticket/1843
Diffstat (limited to 'ipa-client/ipaclient')
-rw-r--r--ipa-client/ipaclient/ipadiscovery.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-client/ipaclient/ipadiscovery.py b/ipa-client/ipaclient/ipadiscovery.py
index ecd8275c..9d909fd1 100644
--- a/ipa-client/ipaclient/ipadiscovery.py
+++ b/ipa-client/ipaclient/ipadiscovery.py
@@ -280,7 +280,7 @@ class IPADiscovery:
finally:
os.remove("%s/ca.crt" % temp_ca_dir)
- os.removedirs(temp_ca_dir)
+ os.rmdir(temp_ca_dir)
def ipadnssearchldap(self, tdomain):