crun: 1.8.3 -> 1.8.4
[NixPkgs.git] / pkgs / tools / networking / networkmanager / vpnc / fix-paths.patch
blob98238ac01f76d7d5226218ed6e5c5e04458c7e13
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;
6 const char *decrypt_possible_paths[] = {
7 - "/usr/lib/vpnc/cisco-decrypt",
8 + "@vpnc@/bin/cisco-decrypt",
9 "/usr/bin/cisco-decrypt",
10 NULL
12 --- a/src/nm-vpnc-service.c
13 +++ b/src/nm-vpnc-service.c
14 @@ -610,7 +610,7 @@
15 find_vpnc (void)
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);
27 - if (system ("/sbin/modprobe tun") == -1)
28 + if (system ("@kmod@/bin/modprobe tun") == -1)
29 exit (EXIT_FAILURE);
31 plugin = nm_vpnc_plugin_new (bus_name);