Mercurial > trustbridge
diff cinst/nssstore_win.c @ 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 | 317ee9dc4684 |
children | b8fb6bf7f980 |
line wrap: on
line diff
--- a/cinst/nssstore_win.c Wed Sep 10 16:31:49 2014 +0200 +++ b/cinst/nssstore_win.c Wed Sep 10 16:41:36 2014 +0200 @@ -854,7 +854,7 @@ it might be a symlink to another place that a users wants us to grant read access to or makes us overwrite something */ - if(!create_restricted_directory (path)) + if(!create_restricted_directory (path, true)) { ERRORPRINTF ("Failed to create directory\n"); xfree(path);