]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
And read only ;)
authorRoy Marples <roy@marples.name>
Sat, 12 Apr 2008 23:15:22 +0000 (23:15 +0000)
committerRoy Marples <roy@marples.name>
Sat, 12 Apr 2008 23:15:22 +0000 (23:15 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 235c639af74cdc365d87be89140d9ea07ada93cc..2dd2e5a999bdcaa6c1c8f182142e4c23a8ec1031 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -699,7 +699,7 @@ write_lease(const struct interface *iface, const struct dhcp_message *dhcp)
        uint8_t l;
        uint8_t o = 0;
 
-       fd = open(iface->leasefile, O_WRONLY | O_CREAT | O_TRUNC, 0600);
+       fd = open(iface->leasefile, O_WRONLY | O_CREAT | O_TRUNC, 0400);
        if (fd == -1)
                return -1;