diff options
author | Tom Gundersen <teg@jklm.no> | 2015-02-04 15:16:40 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-02-05 11:50:46 +0100 |
commit | 3f171cabadfcd8699def3732d264f63f8e800562 (patch) | |
tree | 59b3da9c644ab6770b3c8a3977d02e2542ad722c /src/network | |
parent | e331e24649213f2e093e16e4d3d64ee823dfc375 (diff) |
networkd: don't unlink state files on exit
Only unlink state files on DELLINK. This allows sd-network to be used even when networkd is not running.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-link.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index f4ab97fb17..1442230b51 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -283,12 +283,10 @@ static void link_free(Link *link) { sd_dhcp_client_unref(link->dhcp_client); sd_dhcp_lease_unref(link->dhcp_lease); - unlink(link->lease_file); free(link->lease_file); sd_lldp_free(link->lldp); - unlink(link->lldp_file); free(link->lldp_file); sd_ipv4ll_unref(link->ipv4ll); @@ -300,7 +298,6 @@ static void link_free(Link *link) { free(link->ifname); - unlink(link->state_file); free(link->state_file); udev_device_unref(link->udev_device); |