From eebcbfae753bc51484beb8b705aff6c1fa51226d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sat, 18 May 2019 10:42:30 +0200 Subject: [PATCH] dhcp: store dhclient's pid file in "/var/run/NetworkManager" instead of "/var/run" The pid-file is private to NetworkManager. It should reside in NetworkManager's run directory instead of "/var/run". I don't think that changing this location can break existing uses. Why would somebody outside of NetworkManager care about this file? https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/157 --- src/dhcp/nm-dhcp-dhclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcp/nm-dhcp-dhclient.c b/src/dhcp/nm-dhcp-dhclient.c index b655a1ebe3..2760825262 100644 --- a/src/dhcp/nm-dhcp-dhclient.c +++ b/src/dhcp/nm-dhcp-dhclient.c @@ -376,7 +376,7 @@ dhclient_start (NMDhcpClient *client, iface = nm_dhcp_client_get_iface (client); uuid = nm_dhcp_client_get_uuid (client); - pid_file = g_strdup_printf (RUNSTATEDIR "/dhclient%s-%s.pid", + pid_file = g_strdup_printf (NMRUNDIR "/dhclient%s-%s.pid", _addr_family_to_path_part (addr_family), iface);