small fix for nm-openvpn-service: could not find the openvpn binary



I compiled openvpn-2.1_rc13 from source, that installed the openvpn
binary only to /usr/local/sbin, and neither /usr/sbin nor /sbin. While
network-manager-openvpn only includes /usr/sbin/openvpn and
/sbin/openvpn as binary paths to search. The network manager applet
then complains of "Could not find the openvpn binary", every time I
try to connect. Afte a little look into source of
nm-openvpn-service.c, I came up a small fix:

diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c
index 857d539..c4da0c3 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -577,6 +577,7 @@ nm_find_openvpn (void)
        static const char *openvpn_binary_paths[] = {
                "/usr/sbin/openvpn",
                "/sbin/openvpn",
+               "/usr/local/sbin/openvpn",
                NULL
        };
        const char  **openvpn_binary = openvpn_binary_paths;

 Hope this will make life easier!
--
Juvenn Woo


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