Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
1069:709a7633a2c6 | 1070:f110a3f6e387 |
---|---|
852 | 852 |
853 /* Security: if someone has created this directory before | 853 /* Security: if someone has created this directory before |
854 it might be a symlink to another place that a users | 854 it might be a symlink to another place that a users |
855 wants us to grant read access to or makes us overwrite | 855 wants us to grant read access to or makes us overwrite |
856 something */ | 856 something */ |
857 if(!create_restricted_directory (path)) | 857 if(!create_restricted_directory (path, true)) |
858 { | 858 { |
859 ERRORPRINTF ("Failed to create directory\n"); | 859 ERRORPRINTF ("Failed to create directory\n"); |
860 xfree(path); | 860 xfree(path); |
861 return NULL; | 861 return NULL; |
862 } | 862 } |