diff options
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_perfcount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c index e51d374320..cfefb1fb95 100644 --- a/source3/registry/reg_perfcount.c +++ b/source3/registry/reg_perfcount.c @@ -48,8 +48,8 @@ static char *counters_directory(const char *dbname) TALLOC_CTX *ctx = talloc_tos(); path = state_path(PERFCOUNTDIR); - if (!directory_exist(path)) { - mkdir(path, 0755); + if (!directory_create_or_exist(path, geteuid(), 0755)) { + return NULL; } path = talloc_asprintf(ctx, "%s/%s", PERFCOUNTDIR, dbname); |