]> git.ipfire.org Git - thirdparty/openvpn.git/commit
iservice: make sure directories have trailing backslash
authorHeiko Hund <heiko@ist.eigentlich.net>
Sun, 9 Nov 2025 15:44:31 +0000 (16:44 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 12 Nov 2025 10:44:20 +0000 (11:44 +0100)
commit985f4eaeccf0d3f9d833f3271d88634e237d7cd5
treed97ba4bee8abab3d85d33de0786f590c283961c8
parent39581501ebf85336c8219296c6440226947cbe52
iservice: make sure directories have trailing backslash

At least in the case of the config dir this matters, since the value is
used to validate input data for the interactive service. A missing \
at the end would allow a string compare to succeed, if the last element of
the path to compare starts with the same substring. The trailing slash
ensures that the last element of a path must match completely.

Change-Id: If28e66fcc3493821f78fd14d432b22b996918e8f
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1336
Message-Id: <20251109154438.15464-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34285.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/common.c