diff common/portpath.h @ 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.h	Fri Aug 29 10:26:10 2014 +0200
+++ b/common/portpath.h	Fri Aug 29 12:59:44 2014 +0200
@@ -35,7 +35,7 @@
  * @param[in] path the original pathname
  * @returns a pointer to the resolved path or NULL on error
  */
-char *port_realpath(char *path);
+char *port_realpath(const char *path);
 
 /**
  * @brief test if a file exists
@@ -55,4 +55,14 @@
  */
 bool port_isdir(char *path);
 
+/**
+ * @brief create a directory
+ * @details uses a platform specific mkdir / access rights setup
+ * to create a directory that is world readable and
+ * writable by the current user / group
+ * @param[in] path the path to the directory
+ * @returns true if the directory was created
+ */
+bool port_mkdir(const char *path);
+
 #endif

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