From: Tobias Brunner Date: Tue, 30 Sep 2014 11:52:39 +0000 (+0200) Subject: ipsec: Only set PATH if it is not already set X-Git-Tag: 5.2.1rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249aa67f8777116cd3ce992be6ee98c8ac2ed5b0;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/ipsec/_ipsec.in b/src/ipsec/_ipsec.in index e6725d0cab..fa08f93dd9 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