From: "cron2 (Code Review)" Date: Wed, 12 Nov 2025 10:38:02 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: <08d51eb205cf544a7cc89947c0cf226eb654ba2d-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="x2MbGn/cq5M="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: win: remove checks for PATHCCH_ENSURE_TRAILING_SLASH List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: stipa , plaisthos , flichtenheld , openvpn-devel --x2MbGn/cq5M= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/13= 54?usp=3Demail ) Change subject: win: remove checks for PATHCCH_ENSURE_TRAILING_SLASH ...................................................................... win: remove checks for PATHCCH_ENSURE_TRAILING_SLASH Since the define is no longer used, remove configuration-time checks if it exists, and also code dealing with situations where it doesn't. Change-Id: I50f189048ef1a624e6ac84b71d7b22fcbbc3ab6b Signed-off-by: Heiko Hund Acked-by: Lev Stipakov Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1354 Message-Id: <20251112092216.22703-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 335.html Signed-off-by: Gert Doering --- M configure.ac M src/openvpnserv/CMakeLists.txt M src/openvpnserv/validate.c 3 files changed, 0 insertions(+), 18 deletions(-) diff --git a/configure.ac b/configure.ac index f6e4b6d..44c7b65 100644 --- a/configure.ac +++ b/configure.ac @@ -1383,17 +1383,6 @@ fi fi -if test "${WIN32}" =3D=3D "yes"; then - AC_CHECK_DECLS( - [PATHCCH_ENSURE_TRAILING_SLASH], - [AC_DEFINE([HAVE_PATHCCH_ENSURE_TRAILING_SLASH], [1], [PATHCCH_ENSURE_TR= AILING_SLASH is defined])], - , - [[ - #include - ]] - ) -fi - # When testing a compiler option, we add -Werror to force # an error when the option is unsupported. This is not # required for gcc, but some compilers such as clang need it. diff --git a/src/openvpnserv/CMakeLists.txt b/src/openvpnserv/CMakeLists.txt index a92ee08..2c8f310 100644 --- a/src/openvpnserv/CMakeLists.txt +++ b/src/openvpnserv/CMakeLists.txt @@ -8,9 +8,6 @@ include(CheckSymbolExists) -# Some old versions of mingw does not have PATHCCH_OPTIONS enums -- add a = check -check_symbol_exists(PATHCCH_ENSURE_TRAILING_SLASH pathcch.h HAVE_PATHCCH_E= NSURE_TRAILING_SLASH) - set(MC_GEN_DIR ${CMAKE_CURRENT_BINARY_DIR}/mc) target_include_directories(openvpnserv PRIVATE diff --git a/src/openvpnserv/validate.c b/src/openvpnserv/validate.c index 2dcfe1a..b3189b7 100644 --- a/src/openvpnserv/validate.c +++ b/src/openvpnserv/validate.c @@ -27,10 +27,6 @@ #include #include -#ifndef HAVE_PATHCCH_ENSURE_TRAILING_SLASH -#define PATHCCH_ENSURE_TRAILING_SLASH 0x20 -#endif - static const WCHAR *white_list[] =3D { L"auth-retry", L"config", -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1354?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I50f189048ef1a624e6ac84b71d7b22fcbbc3ab6b Gerrit-Change-Number: 1354 Gerrit-PatchSet: 6 Gerrit-Owner: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel --x2MbGn/cq5M= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

win: remove checks for PATHCCH_ENSURE_TRAILING_S=
LASH

Since the define is no longer used, remove configuration-time c= hecks if
it exists, and also code dealing with situations where it doesn= 't.

Change-Id: I50f189048ef1a624e6ac84b71d7b22fcbbc3ab6b
Sign= ed-off-by: Heiko Hund <heiko@...2662...>
Acked-by: Lev Stipakov &l= t;lstipakov@...277...>
Gerrit URL: https://gerrit.openvpn.net/c/openv= pn/+/1354
Message-Id: <20251112092216.22703-1-gert@...1296...>
= URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 335.html
Signed-off-by: Gert Doering <gert@...1296...>
---
M= configure.ac
M src/openvpnserv/CMakeLists.txt
M src/openvpnserv/vali= date.c
3 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/configure.ac b/configure.ac
index f6e4b6d..= 44c7b65 100644
--- a/configure.ac
+++ b/con= figure.ac
@@ -1383,17 +1383,6 @@
fi
fi

-if test "${WIN32}" =3D=3D "yes"; then=
- AC_CHECK_DECLS(
<= span style=3D"color: hsl(0, 100%, 40%);">- [PATHCCH_ENSURE_TRAILING_SLASH]= ,

- [AC_DEFINE([HAVE_P= ATHCCH_ENSURE_TRAILING_SLASH], [1], [PATHCCH_ENSURE_TRAILING_SLASH is defin= ed])],
- ,
<= span style=3D"color: hsl(0, 100%, 40%);">- [[
- #include <pathcch.h>
- ]]
- )
-fi<= /span>
-
# Wh= en testing a compiler option, we add -Werror to force
# an= error when the option is unsupported. This is not
# requi= red for gcc, but some compilers such as clang need it.
diff= --git a/src/openvpnserv/CMakeLists.txt b/src/openvpnserv/CMakeLists.txt
index a92ee08..2c8f310 100644
--- a/src/openv= pnserv/CMakeLists.txt
+++ b/src/openvpnserv/CMakeLists.txt<= /span>
@@ -8,9 +8,6 @@

include(= CheckSymbolExists)

-# Some old versions of mingw does not have PATHCCH_OPTIONS e= nums -- add a check
-ch= eck_symbol_exists(PATHCCH_ENSURE_TRAILING_SLASH pathcch.h HAVE_PATHCCH_ENSU= RE_TRAILING_SLASH)
-
set(MC_GEN_DIR ${CMAKE_CURRENT_BINARY_DIR}/mc)

target_include_directories(openvpnserv PRIVATE=
diff --git a/src/openvpnserv/validate.c b/src/openvpnserv/validat= e.c
index 2dcfe1a..b3189b7 100644
--- a/src= /openvpnserv/validate.c
+++ b/src/openvpnserv/validate.c
@@ -27,10 +27,6 @@
#include <pathcch.h>= ;
#include <lm.h>

-#ifndef HAVE_PATHCCH_ENSURE_TRAILING_S= LASH
-#define PATHCCH_E= NSURE_TRAILING_SLASH 0x20
-#endif
-
= static const WCHAR *white_list[] =3D {
L"a= uth-retry",
L"config",
=

To view, visit change 1354. To unsubscribe, or for help wri= ting mail filters, visit settings.

=
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I50f189048ef1a624e6ac84b71d7= b22fcbbc3ab6b
Gerrit-Change-Number: 1354
Gerrit-PatchSet: 6
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: stipa <lstipakov@...277...= >
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --x2MbGn/cq5M=--