From ba6df2a68fcad5040f3746419aaac2bc3283a33d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 1 Mar 2014 13:31:33 +0100 Subject: [PATCH] Fix invalid use of open() --- src/odhcp6c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odhcp6c.c b/src/odhcp6c.c index e52e4e0..dfd9925 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -259,7 +259,7 @@ int main(_unused int argc, char* const argv[]) pidfile = pidbuf; } - int fd = open(pidfile, O_WRONLY | O_CREAT); + int fd = open(pidfile, O_WRONLY | O_CREAT, 0644); if (fd >= 0) { char buf[8]; int len = snprintf(buf, sizeof(buf), "%i\n", getpid()); -- 2.30.2