projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03687b5
)
src/graph_list.c: Supply create mode to open(2).
author
Florian Forster
<ff@octo.it>
Wed, 28 Jul 2010 08:30:35 +0000
(10:30 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Wed, 28 Jul 2010 08:30:35 +0000
(10:30 +0200)
src/graph_list.c
patch
|
blob
|
history
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;
- 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);