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 --- source3/lib/dumpcore.c | 2 +- source3/lib/eventlog/eventlog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/dumpcore.c b/source3/lib/dumpcore.c index f284ea4673..487ccecc74 100644 --- a/source3/lib/dumpcore.c +++ b/source3/lib/dumpcore.c @@ -67,7 +67,7 @@ static char *get_default_corepath(const char *logbase, const char *progname) goto err_out; } - if (!directory_create_or_exist(tmp_corepath, uid, mode)) { + if (!directory_create_or_exist(tmp_corepath, mode)) { DEBUG(0, ("Failed to create %s for user %d with mode 0%o\n", tmp_corepath, (int)uid, (int)mode)); goto err_out; diff --git a/source3/lib/eventlog/eventlog.c b/source3/lib/eventlog/eventlog.c index 0cc0240bcc..4c6767d550 100644 --- a/source3/lib/eventlog/eventlog.c +++ b/source3/lib/eventlog/eventlog.c @@ -373,7 +373,7 @@ ELOG_TDB *elog_open_tdb( const char *logname, bool force_clear, bool read_only ) /* make sure that the eventlog dir exists */ eventlogdir = state_path( "eventlog" ); - ok = directory_create_or_exist(eventlogdir, geteuid(), 0755); + ok = directory_create_or_exist(eventlogdir, 0755); if (!ok) { return NULL; } -- cgit