From: Florian Forster Date: Wed, 28 Jul 2010 08:30:35 +0000 (+0200) Subject: src/graph_list.c: Supply create mode to open(2). X-Git-Tag: v4.0.0~71 X-Git-Url: https://git.tokkee.org/?p=collection4.git;a=commitdiff_plain;h=1802050e423bc02c9524dfc5493c1d1bdca1a53d src/graph_list.c: Supply create mode to open(2). --- diff --git a/src/graph_list.c b/src/graph_list.c index fd0dca7..7327683 100644 --- 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);