svn commit: r261428 - head/sbin/dhclient
Eitan Adler
eadler at FreeBSD.org
Mon Feb 3 04:22:30 UTC 2014
Author: eadler
Date: Mon Feb 3 04:22:29 2014
New Revision: 261428
URL: http://svnweb.freebsd.org/changeset/base/261428
Log:
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
Modified:
head/sbin/dhclient/dhclient.c
Modified: head/sbin/dhclient/dhclient.c
==============================================================================
--- head/sbin/dhclient/dhclient.c Mon Feb 3 03:35:43 2014 (r261427)
+++ head/sbin/dhclient/dhclient.c Mon Feb 3 04:22:29 2014 (r261428)
@@ -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);
More information about the svn-src-all
mailing list