crun: 1.8.3 -> 1.8.4
[NixPkgs.git] / pkgs / tools / networking / networkmanager / openconnect / fix-paths.patch
blob9b342f5bd08b67715d9cc61506e8379b7538546b
1 --- a/src/nm-openconnect-service.c
2 +++ b/src/nm-openconnect-service.c
3 @@ -60,7 +60,7 @@
5 static const char *openconnect_binary_paths[] =
7 - "/usr/bin/openconnect",
8 + "@openconnect@/bin/openconnect",
9 "/usr/sbin/openconnect",
10 "/usr/local/bin/openconnect",
11 "/usr/local/sbin/openconnect",
12 @@ -734,7 +734,7 @@
14 _LOGD ("nm-openconnect-service (version " DIST_VERSION ") starting...");
16 - if (system ("/sbin/modprobe tun") == -1)
17 + if (system ("@kmod@/bin/modprobe tun") == -1)
18 exit (EXIT_FAILURE);
20 if (bus_name)