From 1802050e423bc02c9524dfc5493c1d1bdca1a53d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 28 Jul 2010 10:30:35 +0200 Subject: [PATCH] src/graph_list.c: Supply create mode to open(2). --- src/graph_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2