--- pentaxpj.c 2003-02-05 05:19:04.000000000 +0100 +++ pentaxpj.c.oden 2008-07-04 16:04:02.000000000 +0200 @@ -660,7 +660,7 @@ main(int argc, char *argv[]) { lpheight = tmpheight; } if (opto!=NULL) { - lp = open(opto,O_WRONLY | O_TRUNC | O_CREAT); + lp = open(opto,O_WRONLY | O_TRUNC | O_CREAT, 0666); } else { if (lpdevice != NULL) {