From: Ted Lemon Date: Thu, 22 Feb 2001 00:18:54 +0000 (+0000) Subject: Set lease file mode to 644, not 640. X-Git-Tag: V3-BETA-2-PATCH-18~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b5cb3175e0f7bbc004e26237112ff07f0aaf255;p=thirdparty%2Fdhcp.git Set lease file mode to 644, not 640. --- diff --git a/server/dhcpd.c b/server/dhcpd.c index c80f4f011..f1f9e9f68 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -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);