[GRASS-SVN] r41672 - grass/branches/develbranch_6/gem

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 2 11:36:18 EDT 2010


Author: neteler
Date: 2010-04-02 11:36:18 -0400 (Fri, 02 Apr 2010)
New Revision: 41672

Modified:
   grass/branches/develbranch_6/gem/actions.c
   grass/branches/develbranch_6/gem/main.c
Log:
backport permissions

Modified: grass/branches/develbranch_6/gem/actions.c
===================================================================
--- grass/branches/develbranch_6/gem/actions.c	2010-04-02 13:22:17 UTC (rev 41671)
+++ grass/branches/develbranch_6/gem/actions.c	2010-04-02 15:36:18 UTC (rev 41672)
@@ -97,7 +97,7 @@
     /* TODO: Do not hardcode temp paths */
     strcpy(TMPDIR, "/tmp/grass.extension.XXXXXX");	/* tmpdir is a global variable */
     mkstemp(TMPDIR);
-    fd = open(TMPDIR, O_CREAT);
+    fd = open(TMPDIR, O_CREAT, 0777);
     if (fd == -1) {
 	print_error(ERR_UNPACK_EXT,
 		    "could not create temp directory name: %s",

Modified: grass/branches/develbranch_6/gem/main.c
===================================================================
--- grass/branches/develbranch_6/gem/main.c	2010-04-02 13:22:17 UTC (rev 41671)
+++ grass/branches/develbranch_6/gem/main.c	2010-04-02 15:36:18 UTC (rev 41672)
@@ -583,7 +583,7 @@
 	/* TODO: Do not hardcode temp paths */
 	strcpy(TMP_NULL, "/tmp/grass.extension.log.XXXXXX");	/* TMP_NULL is a global variable */
 	mkstemp(TMP_NULL);
-	fd = open(TMP_NULL, O_CREAT);
+	fd = open(TMP_NULL, O_CREAT, 0777);
 	if (fd == -1) {
 	    print_error(ERR_TMPFILE, "could not create temp file: %s",
 			strerror(errno));



More information about the grass-commit mailing list