]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Create lease files so they are user writeable.
authorRoy Marples <roy@marples.name>
Wed, 27 Mar 2013 16:05:45 +0000 (16:05 +0000)
committerRoy Marples <roy@marples.name>
Wed, 27 Mar 2013 16:05:45 +0000 (16:05 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 6a08cf099c1060132d5f68a5080d56042c4a854f..cdfcd1c1dbe39f7641d604fa8076c3f8568acce2 100644 (file)
--- 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;