From: Steven Barth Date: Sat, 1 Mar 2014 12:31:33 +0000 (+0100) Subject: Fix invalid use of open() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ba6df2a68fcad5040f3746419aaac2bc3283a33d;p=project%2Fodhcp6c.git Fix invalid use of open() --- 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());