diff common/portpath.c @ 975:b3695a3399de

(issue86) Install into default directories on Linux If the mozilla process is now started as root it will try to write into the default directories for NSS Shared and mozilla / thunderbird profiles. Cinst will now start the mozilla process once as root.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 29 Aug 2014 12:59:44 +0200
parents 17e1c8f37d72
children faf58e9f518b
line wrap: on
line diff
--- a/common/portpath.c	Fri Aug 29 10:26:10 2014 +0200
+++ b/common/portpath.c	Fri Aug 29 12:59:44 2014 +0200
@@ -36,8 +36,20 @@
 #endif
 }
 
+bool
+port_mkdir(const char *path)
+{
+#ifndef _WIN32
+  return mkdir(path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == 0;
+#else
+  /* TODO */
+  printf("Should make path: %s\n", path);
+  return false;
+#endif
+}
+
 char *
-port_realpath(char *path)
+port_realpath(const char *path)
 {
 #ifndef _WIN32
   return realpath(path, NULL);

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