[GRASS-SVN] r42075 - grass/branches/releasebranch_6_4/gem
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 1 06:26:58 EDT 2010
Author: neteler
Date: 2010-05-01 06:26:57 -0400 (Sat, 01 May 2010)
New Revision: 42075
Modified:
grass/branches/releasebranch_6_4/gem/actions.c
grass/branches/releasebranch_6_4/gem/main.c
Log:
fix permissions
Modified: grass/branches/releasebranch_6_4/gem/actions.c
===================================================================
--- grass/branches/releasebranch_6_4/gem/actions.c 2010-05-01 10:24:01 UTC (rev 42074)
+++ grass/branches/releasebranch_6_4/gem/actions.c 2010-05-01 10:26:57 UTC (rev 42075)
@@ -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/releasebranch_6_4/gem/main.c
===================================================================
--- grass/branches/releasebranch_6_4/gem/main.c 2010-05-01 10:24:01 UTC (rev 42074)
+++ grass/branches/releasebranch_6_4/gem/main.c 2010-05-01 10:26:57 UTC (rev 42075)
@@ -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