summaryrefslogtreecommitdiff
blob: 74a1e76560b15c63f875f626ee935d5027c36f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur mimd-0.30.1.orig/src/parser.cpp mimd-0.30.1/src/parser.cpp
--- mimd-0.30.1.orig/src/parser.cpp	2003-07-10 21:35:52.000000000 +0300
+++ mimd-0.30.1/src/parser.cpp	2009-06-06 19:49:56.000000000 +0300
@@ -37,7 +37,7 @@
       int fd;
 
       // Check to see if we can make a scratch file in the directory
-      if((fd=open(tf.c_str(), O_RDWR|O_CREAT|O_TRUNC)) == -1) 
+      if((fd=open(tf.c_str(), O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR)) == -1) 
          return false;
 
       // Close and delete the test file