]> git.ipfire.org Git - thirdparty/openvpn.git/commit
file checks: Merge warn_if_group_others_accessible() into check_file_access()
authorDavid Sommerseth <davids@openvpn.net>
Mon, 14 Nov 2016 22:45:08 +0000 (23:45 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 16 Nov 2016 17:09:19 +0000 (18:09 +0100)
commit05de0a6e8fb675e309d599a185e70a1c54b8e7e9
tree448c2a6ed93e1fffe61366182d500c1e40d534de
parent7756043c01dd0b23252682f085f3d9a1f4b057de
file checks: Merge warn_if_group_others_accessible() into check_file_access()

Commit 825e2ec1f358f2e8 cleaned up the usage of
warn_if_group_others_accessible()
and moved it into options.c.  At this point there is only one caller of
this
function, check_file_access().

This takes that clean-up one step further and merges everything into
check_file_access().  In addition it removes some no longer needed #ifdefs
and uses platform_stat() to allow a similar check to happen on the Windows
platform as well.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <1479163508-19435-1-git-send-email-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13062.html
src/openvpn/options.c