summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-03-27 16:05:45 +0000
committerRoy Marples <roy@marples.name>2013-03-27 16:05:45 +0000
commit5ad8b7f825ecbe23e92ddfbf1e8544a1e0d09e03 (patch)
treea4a7fc6fcfa82b6b29f4a55adbed48428329b1b0
parentd568259c571bff2ae400a606d311798363f343f2 (diff)
downloaddhcpcd-5ad8b7f825ecbe23e92ddfbf1e8544a1e0d09e03.tar.xz
Create lease files so they are user writeable.
-rw-r--r--dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp.c b/dhcp.c
index 6a08cf09..cdfcd1c1 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -1153,7 +1153,7 @@ write_lease(const struct interface *iface, const struct dhcp_message *dhcp)
syslog(LOG_DEBUG, "%s: writing lease `%s'",
iface->name, iface->leasefile);
- fd = open(iface->leasefile, O_WRONLY | O_CREAT | O_TRUNC, 0444);
+ fd = open(iface->leasefile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (fd == -1)
return -1;