Mercurial > trustbridge
comparison common/portpath.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 | faf58e9f518b |
children | fd7d04bb37cb |
comparison
equal
deleted
inserted
replaced
1069:709a7633a2c6 | 1070:f110a3f6e387 |
---|---|
59 * @brief create a directory | 59 * @brief create a directory |
60 * @details uses a platform specific mkdir / access rights setup | 60 * @details uses a platform specific mkdir / access rights setup |
61 * to create a directory that is world readable and | 61 * to create a directory that is world readable and |
62 * writable by the current user / group | 62 * writable by the current user / group |
63 * @param[in] path the path to the directory | 63 * @param[in] path the path to the directory |
64 * @param[in] propagate_acl weather or not objects should inherit | |
65 * the ACL of this directory. Only has an effect on Windows. | |
64 * @returns true if the directory was created | 66 * @returns true if the directory was created |
65 */ | 67 */ |
66 bool port_mkdir(const char *path); | 68 bool port_mkdir(const char *path, bool propagate_acl); |
67 | 69 |
68 /** | 70 /** |
69 * @brief create a directory and its parent directores | 71 * @brief create a directory and its parent directores |
72 * | |
73 * On Windows the last directory will propagate it's ACL | |
74 * to objects and subdirectories. The parent directories | |
75 * will not. | |
76 * | |
77 * @param[in] propagate_acl weather or not the | |
78 * last created directory should propagate it's acl. | |
79 * Only has an effect on Windows. | |
70 * @param[in] path the path to the directory | 80 * @param[in] path the path to the directory |
71 * @returns true if the directory was created | 81 * @returns true if the directory was created |
72 */ | 82 */ |
73 bool port_mkdir_p(const char *path); | 83 bool port_mkdir_p(const char *path, bool propagate_acl); |
74 | 84 |
75 #endif | 85 #endif |