From f5efddb9aebd896df014a011d68aefb314beee22 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Jul 2014 19:18:09 +0200 Subject: lib: directory_create_or_exist() does not use "uid" parameter Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/param/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/param') diff --git a/lib/param/util.c b/lib/param/util.c index 232e85b75c..faf161d4d4 100644 --- a/lib/param/util.c +++ b/lib/param/util.c @@ -91,7 +91,7 @@ static char *lpcfg_common_path(TALLOC_CTX* mem_ctx, } trim_string(dname,"","/"); - ok = directory_create_or_exist(dname, geteuid(), 0755); + ok = directory_create_or_exist(dname, 0755); if (!ok) { DEBUG(1, ("Unable to create directory %s for file %s. " "Error was %s\n", dname, name, strerror(errno))); @@ -231,7 +231,7 @@ char *smbd_tmp_path(TALLOC_CTX *mem_ctx, return NULL; } - ok = directory_create_or_exist(dname, geteuid(), 0755); + ok = directory_create_or_exist(dname, 0755); if (!ok) { return NULL; } -- cgit