--- static.c.orig       2009-07-19 15:15:35.000000000 +0200
+++ static.c    2009-10-22 13:24:20.000000000 +0200
@@ -31,7 +31,7 @@
         if ( (unsigned long)PL_statbuf.st_size == size ) return -2;
     }
 
-    i = open(my_file, O_CREAT | O_WRONLY | OPEN_O_BINARY);
+    i = open(my_file, O_CREAT | O_WRONLY | OPEN_O_BINARY, 0644);
 
     if (i == -1) {
         fprintf(stderr, "%s: creation of %s failed - aborting with %i.\n", argv0, my_file, errno);
