From: "d12fk (Code Review)" Date: Tue, 11 Nov 2025 01:17:51 +0000 In-Reply-To: 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="Pu3pBUQV3DI="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: iservice: validate config path case-insensitive List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --Pu3pBUQV3DI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, plaisthos. Hello flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1362?usp=3Demail to look at the new patch set (#3). Change subject: iservice: validate config path case-insensitive ...................................................................... iservice: validate config path case-insensitive Windows filesystems do not differentiate by case, so we shouldn't either. Reported-by: stephan@...2953... Change-Id: I4d905da3add9b8a3daf349eb1bc830a017cf493d Signed-off-by: Heiko Hund --- M src/openvpnserv/validate.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/62/1362/3 diff --git a/src/openvpnserv/validate.c b/src/openvpnserv/validate.c index b3189b7..3381503 100644 --- a/src/openvpnserv/validate.c +++ b/src/openvpnserv/validate.c @@ -78,7 +78,7 @@ res =3D PathCchCanonicalize(config_path, _countof(config_path), fn= ame); } - return res =3D=3D S_OK && wcsncmp(config_path, s->config_dir, wcslen(s= ->config_dir)) =3D=3D 0; + return res =3D=3D S_OK && wcsnicmp(config_path, s->config_dir, wcslen(= s->config_dir)) =3D=3D 0; } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1362?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I4d905da3add9b8a3daf349eb1bc830a017cf493d Gerrit-Change-Number: 1362 Gerrit-PatchSet: 3 Gerrit-Owner: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: d12fk --Pu3pBUQV3DI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

d12fk uploaded patch set #3 to this change.

View Change

iservice: validate config path case-insensitive

= Windows filesystems do not differentiate by case, so we shouldn't eithe= r.

Reported-by: stephan@...2953...
Change-Id: I4d905da3add9b8a3da= f349eb1bc830a017cf493d
Signed-off-by: Heiko Hund <heiko@...2662...>= ;
---
M src/openvpnserv/validate.c
1 file changed, 1 insertion(+),= 1 deletion(-)

git pull ssh://gerrit.openvpn.net=
:29418/openvpn refs/changes/62/1362/3
diff --git a/src/openvpnserv/=
validate.c b/src/openvpnserv/validate.c
index b3189b7..3381= 503 100644
--- a/src/openvpnserv/validate.c
+++ b/src/openvpnserv/validate.c
@@ -78,7 +78,7 @@<= br> res =3D PathCchCanonicalize(config_path, _countof(config_= path), fname);
}

- return res =3D=3D S_OK && wcs= ncmp(config_path, s->config_dir, wcslen(s->config_dir)) =3D=3D 0;
+ return res =3D=3D S= _OK && wcsnicmp(config_path, s->config_dir, wcslen(s->config_= dir)) =3D=3D 0;
}



To view, visit change 1362. To unsubscribe, or = for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4d905da3add9b8a3daf349eb1bc= 830a017cf493d
Gerrit-Change-Number: 1362
Gerrit-PatchSet: 3
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: d12fk <heiko@...515...>= ;
= --Pu3pBUQV3DI=--