diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-12-17 19:48:29 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-01-16 11:41:12 +1100 |
commit | b8c6bcc365ce08ddc0ebf51c002d53c08f144981 (patch) | |
tree | 029e65d8b55a0d485038283dc26ee4496ecc818d /ctdb | |
parent | 276c1616cf06741b69e06519ea61c874a686c716 (diff) | |
download | samba-b8c6bcc365ce08ddc0ebf51c002d53c08f144981.tar.gz samba-b8c6bcc365ce08ddc0ebf51c002d53c08f144981.tar.xz samba-b8c6bcc365ce08ddc0ebf51c002d53c08f144981.zip |
ctdb-common: mkdir_p should not try to create .
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-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 7563ff3f1b..cc22f69e37 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; |