aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipsec/_ipsec.in
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-09-30 13:52:39 +0200
committerTobias Brunner <tobias@strongswan.org>2014-10-08 18:44:23 +0200
commit249aa67f8777116cd3ce992be6ee98c8ac2ed5b0 (patch)
tree942d524ea6ddc0b54ea8070f82c1773f7e2e35e8 /src/ipsec/_ipsec.in
parentd52b8738b540fb9c0a1c8266f7a96c1d7c55fede (diff)
downloadstrongswan-249aa67f8777116cd3ce992be6ee98c8ac2ed5b0.tar.bz2
strongswan-249aa67f8777116cd3ce992be6ee98c8ac2ed5b0.tar.xz
ipsec: Only set PATH if it is not already set
The comment indicated this but it was always set anyway. All internal commands are called via their absolute paths, so the script only uses PATH for the uname command, but if that is not located in one of the configured directories the script will fail. Also, since the internal commands are called via their absolute paths there is no need to add the directories to PATH.
Diffstat (limited to 'src/ipsec/_ipsec.in')
-rw-r--r--src/ipsec/_ipsec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipsec/_ipsec.in b/src/ipsec/_ipsec.in
index e6725d0ca..fa08f93dd 100644
--- a/src/ipsec/_ipsec.in
+++ b/src/ipsec/_ipsec.in
@@ -15,7 +15,7 @@
# for more details.
# define a minimum PATH environment in case it is not set
-PATH="/sbin:/bin:/usr/sbin:/usr/bin:@IPSEC_SBINDIR@:@IPSEC_BINDIR@"
+PATH=${PATH:-"/sbin:/bin:/usr/sbin:/usr/bin"}
export PATH
# set daemon name