From: "d12fk (Code Review)" Date: Thu, 6 Nov 2025 20:59:29 +0000 References: Reply-To: heiko@...515..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="xVTd3Bmsokc="; 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: plaisthos , flichtenheld Cc: openvpn-devel --xVTd3Bmsokc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1354?usp=3Demail to review the following change. 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 --- M configure.ac M src/openvpnserv/CMakeLists.txt M src/openvpnserv/validate.c 3 files changed, 0 insertions(+), 18 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/1354/1 diff --git a/configure.ac b/configure.ac index 3117e13..8f3c01d 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 4eb3141..b674058 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I50f189048ef1a624e6ac84b71d7b22fcbbc3ab6b Gerrit-Change-Number: 1354 Gerrit-PatchSet: 1 Gerrit-Owner: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld --xVTd3Bmsokc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos.

d12fk would like plaisthos and flichtenheld to review t= his change.

V= iew Change

win: remove checks for PATHCCH_ENSURE_TRAIL=
ING_SLASH

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

Change-Id: I50f189048ef1a624e6ac84b71d7b22fcbbc3ab6bSigned-off-by: Heiko Hund <heiko@...2662...>
---
M configure.a= c
M src/openvpnserv/CMakeLists.txt
M src/openvpnserv/validate.c
3 = files changed, 0 insertions(+), 18 deletions(-)

=
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/1354/1
diff --git a/configure.ac b/configure.ac
index 3117e13.= .8f3c01d 100644
--- a/configure.ac
+++ b/co= nfigure.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_TRAILING_SLASH is defi= ned])],
- ,
= - [[
- #include <pathcch.h>
- ]]
- )
-fi=
-
# W= hen testing a compiler option, we add -Werror to force
# a= n error when the option is unsupported. This is not
# requ= ired for gcc, but some compilers such as clang need it.
dif= f --git a/src/openvpnserv/CMakeLists.txt b/src/openvpnserv/CMakeLists.txt
index a92ee08..2c8f310 100644
--- a/src/open= vpnserv/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
-c= heck_symbol_exists(PATHCCH_ENSURE_TRAILING_SLASH pathcch.h HAVE_PATHCCH_ENS= URE_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/valida= te.c
index 4eb3141..b674058 100644
--- a/sr= c/openvpnserv/validate.c
+++ b/src/openvpnserv/validate.c
@@ -27,10 +27,6 @@
#include <pathcch.h&g= t;
#include <lm.h>

-#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 change 1354. To unsubscribe, or for help wr= iting mail filters, visit settings.

=
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I50f189048ef1a624e6ac84b71d7= b22fcbbc3ab6b
Gerrit-Change-Number: 1354
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
= --xVTd3Bmsokc=--