Mercurial > trustbridge
diff cinst/mozilla.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 | 1e429faf7c84 |
line wrap: on
line diff
--- a/cinst/mozilla.c Wed Sep 10 16:31:49 2014 +0200 +++ b/cinst/mozilla.c Wed Sep 10 16:41:36 2014 +0200 @@ -420,7 +420,7 @@ else { /* Lets create it */ - if (!port_mkdir_p(profile_dir)) + if (!port_mkdir_p(profile_dir, true)) { ERRORPRINTF ("Failed to create directory: '%s'\n", profile_dir); xfree(profile_dir); @@ -455,7 +455,7 @@ { #ifndef _WIN32 /* NSS Shared db does not exist under windows. */ - if (!port_mkdir_p(NSSSHARED_GLOBAL)) + if (!port_mkdir_p(NSSSHARED_GLOBAL, false)) { ERRORPRINTF("Failed to create nssshared skeleton directory. \n"); }