at 24.05-pre 31 lines 867 B view raw
1--- a/properties/nm-vpnc-editor-plugin.c 2+++ b/properties/nm-vpnc-editor-plugin.c 3@@ -161,7 +161,7 @@ 4 GError *error = NULL; 5 6 const char *decrypt_possible_paths[] = { 7- "/usr/lib/vpnc/cisco-decrypt", 8+ "@vpnc@/bin/cisco-decrypt", 9 "/usr/bin/cisco-decrypt", 10 NULL 11 }; 12--- a/src/nm-vpnc-service.c 13+++ b/src/nm-vpnc-service.c 14@@ -610,7 +610,7 @@ 15 find_vpnc (void) 16 { 17 static const char *vpnc_paths[] = { 18- "/usr/sbin/vpnc", 19+ "@vpnc@/bin/vpnc", 20 "/sbin/vpnc", 21 "/usr/local/sbin/vpnc", 22 NULL 23@@ -1308,7 +1308,7 @@ 24 _LOGD (" vpnc interactive mode is %s", interactive_available ? "enabled" : "disabled"); 25 _LOGD (" uses%s --bus-name \"%s\"", bus_name_free ? "" : " default", bus_name); 26 27- if (system ("/sbin/modprobe tun") == -1) 28+ if (system ("@kmod@/bin/modprobe tun") == -1) 29 exit (EXIT_FAILURE); 30 31 plugin = nm_vpnc_plugin_new (bus_name);