summaryrefslogtreecommitdiff
path: root/lib/util/samba_util.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-01-08 14:21:00 +0100
committerAndrew Bartlett <abartlet@samba.org>2013-01-09 09:11:20 +0100
commit6039388fc1f3671bb60db06211814f7edfc62285 (patch)
tree4589a58f438fda9bff87e4998ccb8500cb033b44 /lib/util/samba_util.h
parent5d721de7fdc250c6cb423c553134dd687590c1a0 (diff)
downloadsamba-6039388fc1f3671bb60db06211814f7edfc62285.tar.gz
samba-6039388fc1f3671bb60db06211814f7edfc62285.tar.bz2
samba-6039388fc1f3671bb60db06211814f7edfc62285.zip
util: Add a strict directory_create_or_exist function.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r--lib/util/samba_util.h4
1 files changed, 4 insertions, 0 deletions
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