From: Roy Marples Date: Wed, 27 Mar 2013 16:05:45 +0000 (+0000) Subject: Create lease files so they are user writeable. X-Git-Tag: v5.6.8~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad8b7f825ecbe23e92ddfbf1e8544a1e0d09e03;p=thirdparty%2Fdhcpcd.git Create lease files so they are user writeable. --- 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;