summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-03-01 13:31:33 +0100
committerSteven Barth <steven@midlink.org>2014-03-01 13:31:33 +0100
commitba6df2a68fcad5040f3746419aaac2bc3283a33d (patch)
treea54fe4a37fb528e31a32d411f988e4c44c1a41f1
parente9901dc8d0ecf382906b0fc7b269116649773cb6 (diff)
downloadodhcp6c-ba6df2a68fcad5040f3746419aaac2bc3283a33d.tar.gz
Fix invalid use of open()
-rw-r--r--src/odhcp6c.c2
1 files changed, 1 insertions, 1 deletions
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());