mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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
This commit is contained in:
parent
f42da4357e
commit
6c9b6548cc
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user