comparison 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
comparison
equal deleted inserted replaced
1069:709a7633a2c6 1070:f110a3f6e387
418 continue; 418 continue;
419 } 419 }
420 else 420 else
421 { 421 {
422 /* Lets create it */ 422 /* Lets create it */
423 if (!port_mkdir_p(profile_dir)) 423 if (!port_mkdir_p(profile_dir, true))
424 { 424 {
425 ERRORPRINTF ("Failed to create directory: '%s'\n", profile_dir); 425 ERRORPRINTF ("Failed to create directory: '%s'\n", profile_dir);
426 xfree(profile_dir); 426 xfree(profile_dir);
427 profile_dir = NULL; 427 profile_dir = NULL;
428 continue; 428 continue;
453 453
454 if (is_elevated()) 454 if (is_elevated())
455 { 455 {
456 #ifndef _WIN32 456 #ifndef _WIN32
457 /* NSS Shared db does not exist under windows. */ 457 /* NSS Shared db does not exist under windows. */
458 if (!port_mkdir_p(NSSSHARED_GLOBAL)) 458 if (!port_mkdir_p(NSSSHARED_GLOBAL, false))
459 { 459 {
460 ERRORPRINTF("Failed to create nssshared skeleton directory. \n"); 460 ERRORPRINTF("Failed to create nssshared skeleton directory. \n");
461 } 461 }
462 else 462 else
463 { 463 {

http://wald.intevation.org/projects/trustbridge/