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