X-Git-Url: http://git.squeep.com/?p=reservoir_sample;a=blobdiff_plain;f=reservoir_sample.c;h=1c64f6fe5598179395241f48c643df05c4b94a45;hp=674506250024495fdd8d50bd40899f80985b667e;hb=1a89d52241dab22f4f8e26712900a9bc689c1083;hpb=9b5d13ce510e4668d165c0b5ede7fd7f74adcbfc diff --git a/reservoir_sample.c b/reservoir_sample.c index 6745062..1c64f6f 100644 --- a/reservoir_sample.c +++ b/reservoir_sample.c @@ -357,7 +357,7 @@ int main(int argc, char *argv[]) { } if (status_filename) { - options_.status_fd = open(status_filename, O_RDONLY|O_APPEND|O_CREAT); + options_.status_fd = open(status_filename, O_RDONLY|O_APPEND|O_CREAT, 0666); if (options_.status_fd < 0) { NOTIFY_ERROR("could not open status file '%s'", status_filename); exit(EX_OSERR);