Mercurial > trustbridge
diff common/util.h @ 1070:f110a3f6e387
(issue114) Fine tune ACL propagation
using mkdir_p the ACL of the parent directories would
propagate to all subdirectories and objects in the directory.
Now we only use ACL propagation in the last directory to make
sure that files we might create in that directory inherit the
correct (resitricted) ACL
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 10 Sep 2014 16:41:36 +0200 |
parents | 78798d3af8f0 |
children | fd85a02d771d |
line wrap: on
line diff
--- a/common/util.h Wed Sep 10 16:31:49 2014 +0200 +++ b/common/util.h Wed Sep 10 16:41:36 2014 +0200 @@ -131,10 +131,12 @@ * http://msdn.microsoft.com/en-us/library/windows/desktop/aa446595%28v=vs.85%29.aspx * * @param[in] path Path of the directory to create + * @param[in] propagate_acl weather or not objects should inherit + * the ACL of this directory. * * @returns true on success of if the directory exists, false on error */ -bool create_restricted_directory (LPWSTR path); +bool create_restricted_directory (LPWSTR path, bool propagate_acl); /**@briefu Check the integrity level of the token *