From 717aa228c5f4a910221da47677288df4e0e30255 Mon Sep 17 00:00:00 2001 From: eadler Date: Mon, 3 Feb 2014 04:22:29 +0000 Subject: [PATCH] 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 --- sbin/dhclient/dhclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index e16e464c6002..ec8d0c74d3a7 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);