summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2014-02-03 04:22:29 +0000
committereadler <eadler@FreeBSD.org>2014-02-03 04:22:29 +0000
commit717aa228c5f4a910221da47677288df4e0e30255 (patch)
tree8039c38ec602dd9183a84e7ca2de36527ca29293 /sbin/dhclient
parentcfb153c3c5ef233b7867ebdad0e064f935b0675c (diff)
downloadFreeBSD-src-717aa228c5f4a910221da47677288df4e0e30255.zip
FreeBSD-src-717aa228c5f4a910221da47677288df4e0e30255.tar.gz
dhclient: change the pidfile's permissions to 644
This change permits non-root users to determine if dhclient is running ('service dhclient status wlan0'). Discussed with: mjg, cperciva
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index e16e464..ec8d0c7 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -393,7 +393,7 @@ main(int argc, char *argv[])
if (path_dhclient_pidfile == NULL)
error("asprintf");
}
- pidfile = pidfile_open(path_dhclient_pidfile, 0600, &otherpid);
+ pidfile = pidfile_open(path_dhclient_pidfile, 0644, &otherpid);
if (pidfile == NULL) {
if (errno == EEXIST)
error("dhclient already running, pid: %d.", otherpid);
OpenPOWER on IntegriCloud