diff -ru ../prev/src/pilot-schlep.c ./src/pilot-schlep.c --- ../prev/src/pilot-schlep.c 2009-02-03 18:30:23.148609399 +0100 +++ ./src/pilot-schlep.c 2009-02-03 18:21:28.851083933 +0100 @@ -22,6 +22,7 @@ */ #include +#include #include "pi-source.h" #include "pi-file.h" @@ -38,7 +39,7 @@ fd; pi_buffer_t *buffer; - fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC); + fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (fd < 0) return -1;