diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-11-24 10:20:13 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-11-24 14:30:01 +0100 |
commit | 795a3943ea5276d8ebe85ad211a0cc9309f9ea48 (patch) | |
tree | e46fc2452a012ac8583d4bd8b038bdd440ab27f0 | |
parent | e2b9346d7145a1112a9cb572c0de7ae0c3507bc6 (diff) | |
download | NetworkManager-795a3943ea5276d8ebe85ad211a0cc9309f9ea48.tar.gz |
device: use nm_utils_find_helper() to find out ping/ping6 binary (bgo #758566)
https://bugzilla.gnome.org/show_bug.cgi?id=758566
-rw-r--r-- | src/devices/nm-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 79c58f0104..b08f3836b3 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7362,7 +7362,7 @@ nm_device_start_ip_check (NMDevice *self) if (priv->ip4_config && priv->ip4_state == IP_DONE) { guint gw = 0; - ping_binary = "/usr/bin/ping"; + ping_binary = nm_utils_find_helper ("ping", "/usr/bin/ping", NULL); log_domain = LOGD_IP4; gw = nm_ip4_config_get_gateway (priv->ip4_config); @@ -7371,7 +7371,7 @@ nm_device_start_ip_check (NMDevice *self) } else if (priv->ip6_config && priv->ip6_state == IP_DONE) { const struct in6_addr *gw = NULL; - ping_binary = "/usr/bin/ping6"; + ping_binary = nm_utils_find_helper ("ping6", "/usr/bin/ping6", NULL); log_domain = LOGD_IP6; gw = nm_ip6_config_get_gateway (priv->ip6_config); |