From 6039388fc1f3671bb60db06211814f7edfc62285 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 8 Jan 2013 14:21:00 +0100 Subject: util: Add a strict directory_create_or_exist function. Reviewed-by: Andrew Bartlett --- lib/util/samba_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/util/samba_util.h') diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index e553ec1342..27c2e6ed3c 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -631,6 +631,10 @@ _PUBLIC_ bool directory_exist(const char *dname); _PUBLIC_ bool directory_create_or_exist(const char *dname, uid_t uid, mode_t dir_perms); +_PUBLIC_ bool directory_create_or_exist_strict(const char *dname, + uid_t uid, + mode_t dir_perms); + /** Set a fd into blocking/nonblocking mode. Uses POSIX O_NONBLOCK if available, else -- cgit