From 249aa67f8777116cd3ce992be6ee98c8ac2ed5b0 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 30 Sep 2014 13:52:39 +0200 Subject: 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. --- src/ipsec/_ipsec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipsec/_ipsec.in') 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 -- cgit v1.2.3