projects
/
reservoir_sample
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now specifies all the parameters open() wants on linux.
[reservoir_sample]
/
reservoir_sample.c
diff --git
a/reservoir_sample.c
b/reservoir_sample.c
index 674506250024495fdd8d50bd40899f80985b667e..1c64f6fe5598179395241f48c643df05c4b94a45 100644
(file)
--- a/
reservoir_sample.c
+++ b/
reservoir_sample.c
@@
-357,7
+357,7
@@
int main(int argc, char *argv[]) {
}
if (status_filename) {
}
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);
if (options_.status_fd < 0) {
NOTIFY_ERROR("could not open status file '%s'", status_filename);
exit(EX_OSERR);