mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
This commit is contained in:
parent
bcbcc48fbf
commit
07561ab459
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue