Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2014 04:22:29 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261428 - head/sbin/dhclient
Message-ID:  <201402030422.s134MTXA023150@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402030422.s134MTXA023150>