summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_utils.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-09 12:23:40 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-09 13:17:27 +1100
commitffb2b3d1c6b099bc80ca2c33ec50c9ff03a0a4e4 (patch)
treeb75339a3a2934d4adbf80f8bc9564eafa2dba3f4 /buildtools/wafsamba/samba_utils.py
parentebe2867fc2c01fb5288d62eedb0e2f43788b9f27 (diff)
downloadsamba-ffb2b3d1c6b099bc80ca2c33ec50c9ff03a0a4e4.tar.gz
samba-ffb2b3d1c6b099bc80ca2c33ec50c9ff03a0a4e4.tar.bz2
samba-ffb2b3d1c6b099bc80ca2c33ec50c9ff03a0a4e4.zip
waf: make mkdir_p on a empty string not recurse forever
Diffstat (limited to 'buildtools/wafsamba/samba_utils.py')
-rw-r--r--buildtools/wafsamba/samba_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index 563009e093..b1ddc5a99e 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -308,7 +308,7 @@ def recursive_dirlist(dir, relbase, pattern=None):
def mkdir_p(dir):
'''like mkdir -p'''
- if os.path.isdir(dir):
+ if not dir or os.path.isdir(dir):
return
mkdir_p(os.path.dirname(dir))
os.mkdir(dir)