diff options
author | Dan Williams <dcbw@redhat.com> | 2008-11-05 17:18:13 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2008-11-05 17:18:13 +0000 |
commit | 1b075023fab3283152b0d112d1497293912b30bd (patch) | |
tree | d90df098921b982eb849bdbb213dabfcb1ba02ba /src | |
parent | a3bce590916b8e603da5e172d938bd1994296479 (diff) | |
download | NetworkManager-1b075023fab3283152b0d112d1497293912b30bd.tar.gz |
2008-11-05 Dan Williams <dcbw@redhat.com>
* src/dhcp-manager/nm-dhcp-dhclient.c
- (get_leasefile_for_iface): move lease files back to where dhclient
puts them
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4267 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src')
-rw-r--r-- | src/dhcp-manager/nm-dhcp-dhclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dhcp-manager/nm-dhcp-dhclient.c b/src/dhcp-manager/nm-dhcp-dhclient.c index 5ac263c439..f529315eda 100644 --- a/src/dhcp-manager/nm-dhcp-dhclient.c +++ b/src/dhcp-manager/nm-dhcp-dhclient.c @@ -36,6 +36,7 @@ #define NM_DHCP_MANAGER_PID_FILENAME "dhclient" #define NM_DHCP_MANAGER_PID_FILE_EXT "pid" +#define NM_DHCP_MANAGER_LEASE_DIR LOCALSTATEDIR "/lib/dhclient" #define NM_DHCP_MANAGER_LEASE_FILENAME "dhclient" #define NM_DHCP_MANAGER_LEASE_FILE_EXT "lease" @@ -57,7 +58,7 @@ static char * get_leasefile_for_iface (const char * iface) { return g_strdup_printf ("%s/%s-%s.%s", - NM_DHCP_MANAGER_RUN_DIR, + NM_DHCP_MANAGER_LEASE_DIR, NM_DHCP_MANAGER_LEASE_FILENAME, iface, NM_DHCP_MANAGER_LEASE_FILE_EXT); |