projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/graph_list.c: Supply create mode to open(2).
[collection4.git]
/
src
/
graph_list.c
diff --git
a/src/graph_list.c
b/src/graph_list.c
index
fd0dca7
..
7327683
100644
(file)
--- a/
src/graph_list.c
+++ b/
src/graph_list.c
@@
-264,7
+264,8
@@
static int gl_dump (void) /* {{{ */
int status;
size_t i;
int status;
size_t i;
- fd = open (CACHE_FILE, O_WRONLY | O_TRUNC | O_CREAT);
+ fd = open (CACHE_FILE, O_WRONLY | O_TRUNC | O_CREAT,
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
if (fd < 0)
{
fprintf (stderr, "gl_dump: open(2) failed with status %i\n", errno);
if (fd < 0)
{
fprintf (stderr, "gl_dump: open(2) failed with status %i\n", errno);