From: Roy Marples Date: Thu, 21 Feb 2008 16:35:15 +0000 (+0000) Subject: Fix mode of pidfile so any user can read it. X-Git-Tag: v3.2.3~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ff2646bc15d3296d6ad27b498648c26f9fefa3;p=thirdparty%2Fdhcpcd.git Fix mode of pidfile so any user can read it. --- diff --git a/dhcpcd.c b/dhcpcd.c index 6aa14ef2..e1018472 100644 --- 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));