From b8c6bcc365ce08ddc0ebf51c002d53c08f144981 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 17 Dec 2013 19:48:29 +1100 Subject: ctdb-common: mkdir_p should not try to create . Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/common/system_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ctdb/common') 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; -- cgit