Browse Source

compilation fix as suggested by Glynn on grass-dev

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34108 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 16 years ago
parent
commit
37ec66f619
1 changed files with 2 additions and 2 deletions
  1. 2 2
      raster/r.drain/main.c

+ 2 - 2
raster/r.drain/main.c

@@ -289,8 +289,8 @@ int main(int argc, char **argv)
     tempfile1 = G_tempfile();
     tempfile2 = G_tempfile();
 
-    fe = open(tempfile1, O_RDWR | O_CREAT);
-    fd = open(tempfile2, O_RDWR | O_CREAT);
+    fe = open(tempfile1, O_RDWR | O_CREAT, 0666);
+    fd = open(tempfile2, O_RDWR | O_CREAT, 0666);
 
     /* transfer the input map to a temp file */
     for (i = 0; i < nrows; i++) {