comparison 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
comparison
equal deleted inserted replaced
974:cbd32175c56c 975:b3695a3399de
34 sprintf(path, "%s%s", drive, dir); 34 sprintf(path, "%s%s", drive, dir);
35 return path; 35 return path;
36 #endif 36 #endif
37 } 37 }
38 38
39 bool
40 port_mkdir(const char *path)
41 {
42 #ifndef _WIN32
43 return mkdir(path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == 0;
44 #else
45 /* TODO */
46 printf("Should make path: %s\n", path);
47 return false;
48 #endif
49 }
50
39 char * 51 char *
40 port_realpath(char *path) 52 port_realpath(const char *path)
41 { 53 {
42 #ifndef _WIN32 54 #ifndef _WIN32
43 return realpath(path, NULL); 55 return realpath(path, NULL);
44 #else 56 #else
45 char *fp = _fullpath(NULL, path, 0); 57 char *fp = _fullpath(NULL, path, 0);

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