Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1Index: 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 @@ 6 # 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 12 13 # uncomment to log VPN connections 14Index: 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] = {}; 21 22+ push_env(envp, countof(envp), "PATH=%s", getenv("PATH")); 23+ 24 me = ike_sa->get_my_host(ike_sa); 25 other = ike_sa->get_other_host(ike_sa); 26