Make sure we delete the PID file when we exit.
Obtained from: OpenBSD rev 1.3 (this semi-security fix was hidden as a lease time fix)
This commit is contained in:
parent
ac7ba92669
commit
6ad39c5859
@ -307,6 +307,8 @@ static void usage (appname)
|
||||
|
||||
void cleanup ()
|
||||
{
|
||||
/* Make sure the pidfile is gone. */
|
||||
unlink (path_dhclient_pid);
|
||||
}
|
||||
|
||||
/* Individual States:
|
||||
|
Loading…
x
Reference in New Issue
Block a user