]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix mode of pidfile so any user can read it.
authorRoy Marples <roy@marples.name>
Thu, 21 Feb 2008 16:35:15 +0000 (16:35 +0000)
committerRoy Marples <roy@marples.name>
Thu, 21 Feb 2008 16:35:15 +0000 (16:35 +0000)
dhcpcd.c

index 6aa14ef2d4eb1bbbe419577769147b4f6252abad..e1018472611720b415dfaf39fa9ee49ccf4ed89c 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -586,7 +586,7 @@ int main(int argc, char **argv)
                }
 
                pidfd = open (options->pidfile,
-                             O_WRONLY | O_CREAT | O_NONBLOCK, 0660);
+                             O_WRONLY | O_CREAT | O_NONBLOCK, 0664);
                if (pidfd == -1) {
                        logger (LOG_ERR, "open `%s': %s",
                                options->pidfile, strerror (errno));