From: "selvanair (Code Review)" Date: Thu, 6 Nov 2025 20:30:43 +0000 In-Reply-To: References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qXuf3ulWUcE="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: iservice: validate config path better List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: plaisthos , flichtenheld , openvpn-devel --qXuf3ulWUcE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, d12fk, flichtenheld, plaisthos. selvanair has posted comments on this change by d12fk. ( http://gerrit.open= vpn.net/c/openvpn/+/1307?usp=3Demail ) Change subject: iservice: validate config path better ...................................................................... Patch Set 3: (2 comments) File src/openvpnserv/validate.c: http://gerrit.openvpn.net/c/openvpn/+/1307/comment/68d02a1c_0271f54d?usp=3D= email : PS3, Line 88: HRESULT res =3D PathCchCanonicalizeEx(config_dir, _counto= f(config_dir), s->config_dir, As you are effectively reverting commit 05a8ba808, also remove "HAVE_PATHCC= H_ENSURE_TRAILING_SLASH" introduced by there and related changes in CMakeFi= les.txt. Also the follow up commit d5e6b72460a. http://gerrit.openvpn.net/c/openvpn/+/1307/comment/1a4c657c_0c6a5d1e?usp=3D= email : PS3, Line 85: return res =3D=3D S_OK && wcsncmp(config_path, s->config_= dir, wcslen(s->config_dir)) =3D=3D 0; While at it, make this case insensitve. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1307?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I0e94068f467f2899daf133b032a785d2d7fc05e4 Gerrit-Change-Number: 1307 Gerrit-PatchSet: 3 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-CC: selvanair Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Attention: d12fk Gerrit-Comment-Date: Thu, 06 Nov 2025 20:30:43 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --qXuf3ulWUcE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

2 comments:

  • File src/openvpnserv/validate.c:

    • Patch S= et #3, Line 88: HRE= SULT res =3D PathCchCanonicalizeEx(config_dir, _countof(config_dir), s->= config_dir,

      As you are effectively reverting commit 05a8ba808, a= lso remove "HAVE_PATHCCH_ENSURE_TRAILING_SLASH" introduced by the= re and related changes in CMakeFiles.txt. Also the follow up commit d5e6b72= 460a.

    • Patch Set #3, Line 85: return res =3D=3D S_OK && = wcsncmp(config_path, s->config_dir, wcslen(s->config_dir)) =3D=3D 0;<= /code>

      While at it, make this case insensitve.

<= p>To view, visit change 1307. To unsubscribe, or for help writing mail filters= , visit settings= .

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0e94068f467f2899daf133b032a= 785d2d7fc05e4
Gerrit-Change-Number: 1307
Gerrit-PatchSet: 3
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-CC: selvanair <selva.nair@...277...&= gt;
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Thu, 06 Nov 2025 20:30:43= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --qXuf3ulWUcE=--