]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Set lease file mode to 644, not 640.
authorTed Lemon <source@isc.org>
Thu, 22 Feb 2001 00:18:54 +0000 (00:18 +0000)
committerTed Lemon <source@isc.org>
Thu, 22 Feb 2001 00:18:54 +0000 (00:18 +0000)
server/dhcpd.c

index c80f4f0118edfcfeca271384b737a49116004d01..f1f9e9f68fa2a80b0a380f52f00ef5c5d76c723a 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.111 2001/02/12 21:59:31 mellon Exp $ Copyright 1995-2001 Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.112 2001/02/22 00:18:54 mellon Exp $ Copyright 1995-2001 Internet Software Consortium.";
 #endif
 
   static char copyright[] =
@@ -536,7 +536,7 @@ int main (argc, argv, envp)
                if (pid && (pid == getpid() || kill (pid, 0) < 0)) {
                        unlink (path_dhcpd_pid);
                        if ((i = open (path_dhcpd_pid,
-                                      O_WRONLY | O_CREAT, 0640)) >= 0) {
+                                      O_WRONLY | O_CREAT, 0644)) >= 0) {
                                sprintf (pbuf, "%d\n", (int)getpid ());
                                write (i, pbuf, strlen (pbuf));
                                close (i);
@@ -568,7 +568,7 @@ int main (argc, argv, envp)
        if (!pidfilewritten) {
                unlink (path_dhcpd_pid);
                if ((i = open (path_dhcpd_pid,
-                              O_WRONLY | O_CREAT, 0640)) >= 0) {
+                              O_WRONLY | O_CREAT, 0644)) >= 0) {
                        sprintf (pbuf, "%d\n", (int)getpid ());
                        write (i, pbuf, strlen (pbuf));
                        close (i);