From: Shea Levy Date: Tue, 30 Sep 2014 18:31:50 +0000 (-0400) Subject: library: Allow specifying the path to strongswan.conf in the STRONGSWAN_CONF env var X-Git-Tag: 5.2.1dr1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fea45506ee3c0712bb62d6ba311459164036d7e;p=thirdparty%2Fstrongswan.git library: Allow specifying the path to strongswan.conf in the STRONGSWAN_CONF env var --- diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c index 715f5bc434..dc73ccc682 100644 --- a/src/libstrongswan/library.c +++ b/src/libstrongswan/library.c @@ -263,7 +263,7 @@ bool library_init(char *settings, const char *namespace) .get = _get, .set = _set, .ns = strdup(namespace ?: "libstrongswan"), - .conf = strdupnull(settings ?: STRONGSWAN_CONF), + .conf = strdupnull(settings ?: (getenv("STRONGSWAN_CONF") ?: STRONGSWAN_CONF)), }, .ref = 1, );