From: "d12fk (Code Review)" Date: Fri, 7 Nov 2025 18:23:20 +0000 References: Reply-To: heiko@...515..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <439ef7976a080713b0919ac783e85dde405d40b0-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Ut9puTB0yCE="; 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 --Ut9puTB0yCE= 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/+/1362?usp=3Demail to review the following change. Change subject: iservice: validate config path case-insensitive ...................................................................... iservice: validate config path case-insensitive Windows filesystems do not make a difference here, so should we. 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/1 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I4d905da3add9b8a3daf349eb1bc830a017cf493d Gerrit-Change-Number: 1362 Gerrit-PatchSet: 1 Gerrit-Owner: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld --Ut9puTB0yCE= 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

iservice: validate config path case-insensi=
tive

Windows filesystems do not make a difference here, so should we= .

Reported-by: stephan@...2953...
Change-Id: I4d905da3add9b8a3daf= 349eb1bc830a017cf493d
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/1
diff --git a/src/openvpnserv/v=
alidate.c b/src/openvpnserv/validate.c
index b3189b7..33815= 03 100644
--- a/src/openvpnserv/validate.c
= +++ b/src/openvpnserv/validate.c
@@ -78,7 +78,7 @@ res =3D PathCchCanonicalize(config_path, _countof(config_p= ath), fname);
}

- return res =3D=3D S_OK && wcsn= cmp(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_d= ir)) =3D=3D 0;
}



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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I4d905da3add9b8a3daf349eb1bc= 830a017cf493d
Gerrit-Change-Number: 1362
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...>
= --Ut9puTB0yCE=--