diff -urN ./pilot-link-0.12.3.orig/src/pilot-schlep.c ./pilot-link-0.12.3/src/pilot-schlep.c --- ./pilot-link-0.12.3.orig/src/pilot-schlep.c 2006-10-12 09:21:21.000000000 -0500 +++ ./pilot-link-0.12.3/src/pilot-schlep.c 2009-02-17 07:18:08.000000000 -0600 @@ -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;