diff options
Diffstat (limited to 'ctdb/common/system_common.c')
-rw-r--r-- | ctdb/common/system_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/common/system_common.c b/ctdb/common/system_common.c index 7563ff3f1ba..cc22f69e37c 100644 --- a/ctdb/common/system_common.c +++ b/ctdb/common/system_common.c @@ -169,6 +169,10 @@ int mkdir_p(const char *dir, int mode) return 0; } + if (strcmp(dir, ".") == 0) { + return 0; + } + t = talloc_strdup(NULL, dir); if (t == NULL) { return ENOMEM; |