diff options
author | Jonathan K. Bullard <jkbullard@gmail.com> | 2012-03-31 07:47:34 -0400 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-05-02 19:25:08 +0200 |
commit | a050bcef9cf71e7479551677b116879e6c563bd5 (patch) | |
tree | ec22762f67035b5b335e3f735dd6a5a793bf9199 /config-msvc-version.h.in | |
parent | 4b87c868333e6aca5cb78bc345059e61c72b9423 (diff) | |
download | openvpn-a050bcef9cf71e7479551677b116879e6c563bd5.tar.gz openvpn-a050bcef9cf71e7479551677b116879e6c563bd5.tar.xz openvpn-a050bcef9cf71e7479551677b116879e6c563bd5.zip |
Fix file access checks on commands
The current implementation of check_file_access() does not consider that
some options take scripts and executables as input. When some of these
commands are given arguments in the OpenVPN configuration,
check_file_access() would take those arguments as a part of the file name
to the command. Thus the file check would fail.
This patch improves that by introducing a check_cmd_access() function which
first splits out the arguments to the command before checking if the file
with the command is available.
[DS: This patch is splitted out from the options.c.diff patch sent to the
mailing list - where only the function changes is included here]
Signed-off-by: Jonathan K. Bullard <jkbullard@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: CAEsd45RkyJw6yUk1Jwkip70HkCjKYoU+V=do3N7SH7JOaHBZdw@mail.gmail.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6194
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'config-msvc-version.h.in')
0 files changed, 0 insertions, 0 deletions