From 2e1568ff598de94efdaa37a5b504cbd70db0a358 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 18 Jan 2011 22:37:39 +0100 Subject: fix compile error with -Wall --- tools/adk/pkgrebuild.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/adk/pkgrebuild.c b/tools/adk/pkgrebuild.c index e6497b8c7..0a91834e7 100644 --- a/tools/adk/pkgrebuild.c +++ b/tools/adk/pkgrebuild.c @@ -50,7 +50,7 @@ static void iter_disabled(const char *key, const char *value, const void *obj) { //fprintf(stderr, "Symbol is a flavour/choice: %s\n", hvalue); if (snprintf(tfile, 256, ".rebuild.%s", hvalue) < 0) perror("can not create file variable."); - fd = open(tfile, O_RDWR | O_CREAT); + fd = open(tfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); close(fd); } } @@ -70,7 +70,7 @@ static void iter_enabled(const char *key, const char *value, const void *obj) { //fprintf(stderr, "Symbol is a flavour/choice\n"); if (snprintf(tfile, 256, ".rebuild.%s", hvalue) < 0) perror("can not create file variable."); - fd = open(tfile, O_RDWR | O_CREAT); + fd = open(tfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); close(fd); } } -- cgit v1.2.3