Merge branch 'hotfix/open-fix' into develop
[reservoir_sample] / reservoir_sample.c
index 674506250024495fdd8d50bd40899f80985b667e..1c64f6fe5598179395241f48c643df05c4b94a45 100644 (file)
@@ -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);