about summary refs log tree commit diff
path: root/pkgs/tools/networking/strongswan/ext_auth-path.patch
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-12-22 19:55:01 +0000
committerIgor Pashev <pashev.igor@gmail.com>2014-12-22 20:20:58 +0000
commit17d8029150b246d9cd67174120900ea6bdbedda4 (patch)
treeef54b99678c25639eb9bd1eb27e08d12bc040bb9 /pkgs/tools/networking/strongswan/ext_auth-path.patch
parent2b91b9b5941d9ef31ab4e0772ffa03c023abd2cc (diff)
downloadnixlib-17d8029150b246d9cd67174120900ea6bdbedda4.tar
nixlib-17d8029150b246d9cd67174120900ea6bdbedda4.tar.gz
nixlib-17d8029150b246d9cd67174120900ea6bdbedda4.tar.bz2
nixlib-17d8029150b246d9cd67174120900ea6bdbedda4.tar.lz
nixlib-17d8029150b246d9cd67174120900ea6bdbedda4.tar.xz
nixlib-17d8029150b246d9cd67174120900ea6bdbedda4.tar.zst
nixlib-17d8029150b246d9cd67174120900ea6bdbedda4.zip
Strongswan: preserve PATH
Diffstat (limited to 'pkgs/tools/networking/strongswan/ext_auth-path.patch')
-rw-r--r--pkgs/tools/networking/strongswan/ext_auth-path.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/networking/strongswan/ext_auth-path.patch b/pkgs/tools/networking/strongswan/ext_auth-path.patch
new file mode 100644
index 000000000000..397537ad8d84
--- /dev/null
+++ b/pkgs/tools/networking/strongswan/ext_auth-path.patch
@@ -0,0 +1,13 @@
+Index: strongswan-5.2.1/src/libcharon/plugins/ext_auth/ext_auth_listener.c
+===================================================================
+--- strongswan-5.2.1.orig/src/libcharon/plugins/ext_auth/ext_auth_listener.c
++++ strongswan-5.2.1/src/libcharon/plugins/ext_auth/ext_auth_listener.c
+@@ -101,6 +101,8 @@ METHOD(listener_t, authorize, bool,
+ 
+ 		*success = FALSE;
+ 
++		push_env(envp, countof(envp), "PATH=%s", getenv("PATH"));
++
+ 		push_env(envp, countof(envp), "IKE_UNIQUE_ID=%u",
+ 				 ike_sa->get_unique_id(ike_sa));
+ 		push_env(envp, countof(envp), "IKE_NAME=%s",