ppp-manager: use configured pppd path

Path to pppd can be set via configure flag but the source code ignores it.

Let's use PPPD_PATH like other calls of nm_utils_find_helper do.

https://bugzilla.gnome.org/show_bug.cgi?id=796752
This commit is contained in:
Jan Tojnar
2018-07-05 20:19:16 +02:00
committed by Thomas Haller
parent f3c1e7f6ab
commit 1cdb36b8de

View File

@@ -809,7 +809,7 @@ create_pppd_cmd_line (NMPPPManager *self,
g_return_val_if_fail (setting != NULL, NULL); g_return_val_if_fail (setting != NULL, NULL);
pppd_binary = nm_utils_find_helper ("pppd", NULL, err); pppd_binary = nm_utils_find_helper ("pppd", PPPD_PATH, err);
if (!pppd_binary) if (!pppd_binary)
return NULL; return NULL;