[NetworkManager-fortisslvpn] service: fix openfortivpn search path



commit 18be2534e9e407de6e91b456215abcf9ce1d827e
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Sun Feb 14 11:07:22 2021 +0100

    service: fix openfortivpn search path
    
    Local installation should override distro-provided. Also; there's no
    point in looking into /bin: openfortivpn has no business being there and
    on modern systems /bin is a symlink to /usr/bin anyways.
    
    https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/issues/35

 src/nm-fortisslvpn-service.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
index 6a4344c..6c340d0 100644
--- a/src/nm-fortisslvpn-service.c
+++ b/src/nm-fortisslvpn-service.c
@@ -182,9 +182,8 @@ nm_find_openfortivpn (void)
 {
        static const char *openfortivpn_binary_paths[] =
                {
-                       "/bin/openfortivpn",
-                       "/usr/bin/openfortivpn",
                        "/usr/local/bin/openfortivpn",
+                       "/usr/bin/openfortivpn",
                        NULL
                };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]