]> git.ipfire.org Git - thirdparty/openvpn.git/commit
plugin: Improve the handling of default plug-in directory
authorDavid Sommerseth <davids@openvpn.net>
Fri, 27 Jan 2017 14:21:20 +0000 (15:21 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 Mar 2017 16:37:42 +0000 (17:37 +0100)
commitf9609f1df9d8c070245b7c008dc54ac9ccdbe231
tree83e451400fc38f059871da4d7b7c540029ad2d96
parent92a5b9fb76cbb7f43a6aa86994ff559f06c55c7a
plugin: Improve the handling of default plug-in directory

OpenVPN uses a default plug-in directore, set using PLUGINDIR when
running ./configure.  If this is set, it will use $LIBDIR/openvpn/plugin.

When using --plugin, OpenVPN will load plug-ins from this directory with
the only exception if the plug-in filename is based on an absolute path.
Any other relative paths are relative to the PLUGINDIR.

This patch adds a third variant, using plug-in paths starting with '.'
In this case, OpenVPN will use the relative directory of where OpenVPN
was started, or the directory OpenVPN have changed into due to --cd
being used before the actual --plugin option.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170127142120.10492-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13970.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/openvpn.8
src/openvpn/plugin.c