summaryrefslogtreecommitdiffstats
path: root/version.m4
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2012-05-02 19:54:12 +0200
committerDavid Sommerseth <davids@redhat.com>2012-05-03 09:14:03 +0200
commit0576a9f2f8c8a7cf2d50579e6762df6c86b388c5 (patch)
tree4c4b90f2fc897c6b37df92fc4b19eb14e7db9dd2 /version.m4
parenta0e8911bf3ce72178e72784f744556bef20727b3 (diff)
downloadopenvpn-0576a9f2f8c8a7cf2d50579e6762df6c86b388c5.tar.gz
openvpn-0576a9f2f8c8a7cf2d50579e6762df6c86b388c5.tar.xz
openvpn-0576a9f2f8c8a7cf2d50579e6762df6c86b388c5.zip
Simplify check_cmd_access() function
To avoid confusion between check_file_access() and check_cmd_access() in the future, remove unneeded arguments from check_cmd_access() As a command will always be a file, it should always check for CHKACC_FILE and nothing else. And as the commands always will need X_OK, check only for that. One change from earlier behaviour is that R_OK is not checked for. The reason is that only scripts require R_OK to work. However, a system might be installed with binaries with only X_OK set. If a script is missing R_OK, then the execution will fail due to lacking permissions. Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Alon Bar-Lev <alon.barlev@gmail.com> Message-Id: 1335981252-7390-1-git-send-email-davids@redhat.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6391
Diffstat (limited to 'version.m4')
0 files changed, 0 insertions, 0 deletions