linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / strongswan / updown-path.patch
blobf01da7d7bce644765658da2d30a55a6c475813f6
1 Index: strongswan-5.2.1/src/_updown/_updown.in
2 ===================================================================
3 --- strongswan-5.2.1.orig/src/_updown/_updown.in
4 +++ strongswan-5.2.1/src/_updown/_updown.in
5 @@ -125,7 +125,7 @@
8 # define a minimum PATH environment in case it is not set
9 -PATH="/sbin:/bin:/usr/sbin:/usr/bin:@sbindir@"
10 +PATH="${PATH:-/sbin:/bin:/usr/sbin:/usr/bin}"
11 export PATH
13 # uncomment to log VPN connections
14 Index: strongswan-5.2.1/src/libcharon/plugins/updown/updown_listener.c
15 ===================================================================
16 --- strongswan-5.2.1.orig/src/libcharon/plugins/updown/updown_listener.c
17 +++ strongswan-5.2.1/src/libcharon/plugins/updown/updown_listener.c
18 @@ -240,6 +240,8 @@ static void invoke_once(private_updown_l
19 process_t *process;
20 char *envp[128] = {};
22 + push_env(envp, countof(envp), "PATH=%s", getenv("PATH"));
24 me = ike_sa->get_my_host(ike_sa);
25 other = ike_sa->get_other_host(ike_sa);