Browse Source

Fix missing mode parameter (bug https://trac.osgeo.org/grass/ticket/993)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41376 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 years ago
parent
commit
c115b063c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gem/actions.c

+ 1 - 1
gem/actions.c

@@ -97,7 +97,7 @@ void unpack_extension(char *package)
     /* TODO: Do not hardcode temp paths */
     /* TODO: Do not hardcode temp paths */
     strcpy(TMPDIR, "/tmp/grass.extension.XXXXXX");	/* tmpdir is a global variable */
     strcpy(TMPDIR, "/tmp/grass.extension.XXXXXX");	/* tmpdir is a global variable */
     mkstemp(TMPDIR);
     mkstemp(TMPDIR);
-    fd = open(TMPDIR, O_CREAT);
+    fd = open(TMPDIR, O_CREAT, 0777);
     if (fd == -1) {
     if (fd == -1) {
 	print_error(ERR_UNPACK_EXT,
 	print_error(ERR_UNPACK_EXT,
 		    "could not create temp directory name: %s",
 		    "could not create temp directory name: %s",