From: "cron2 (Code Review)" Date: Tue, 14 Nov 2023 15:08:18 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: <3930ee742096050390e72e437470c723f2c66cb3-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="o9GhJ/pBBUQ="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: config.h: fix incorrect defines for _wopen() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stipa , plaisthos , flichtenheld Cc: openvpn-devel --o9GhJ/pBBUQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= stipa. ( http://gerrit.openvpn.net/c/openvpn/+/429?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: config.h: fix incorrect defines for _wopen() ...................................................................... config.h: fix incorrect defines for _wopen() This is a regression from commit 01341840 ("add basic CMake based build") S_IRUSR and S_IWUSR should NOT be defined as 0 but as _S_IREAD and _S_IWRITE, as it was already fixed in commit 077445d0 ("Fix some more wrong defines in config-msvc.h") Those are used as permission mode when opening a file. Passing zero makes file read-only, which break for example --status-file functionality. Github: fixes OpenVPN/openvpn#454 Trac: #1430 Change-Id: I53eaee85d7b284af6bc63da5f6d8f310ddd96c47 Signed-off-by: Lev Stipakov Acked-by: Gert Doering Message-Id: <20231114141653.10486-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 393.html Signed-off-by: Gert Doering --- M config.h.cmake.in 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/429/2 diff --git a/config.h.cmake.in b/config.h.cmake.in index f2cdd39..1c0dd6f 100644 --- a/config.h.cmake.in +++ b/config.h.cmake.in @@ -469,8 +469,8 @@ #define strncasecmp strnicmp #define strcasecmp _stricmp -#define S_IRUSR 0 -#define S_IWUSR 0 +#define S_IRUSR _S_IREAD +#define S_IWUSR _S_IWRITE #define R_OK 4 #define W_OK 2 #define X_OK 1 -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/429?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I53eaee85d7b284af6bc63da5f6d8f310ddd96c47 Gerrit-Change-Number: 429 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --o9GhJ/pBBUQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by stipa.

View Change

The following approvals got outdated and= were removed: Code-Review+2 by cron2

config.h: fix incorrect defines for _wopen()

= This is a regression from commit

01341840 ("add basic CMake b= ased build")

S_IRUSR and S_IWUSR should NOT be defined as 0 but=
as _S_IREAD and _S_IWRITE, as it was already fixed in commit

0= 77445d0 ("Fix some more wrong defines in config-msvc.h")

T= hose are used as permission mode when opening a file. Passing
zero makes= file read-only, which break for example --status-file
functionality.
Github: fixes OpenVPN/openvpn#454
Trac: #1430

Change-Id: I53= eaee85d7b284af6bc63da5f6d8f310ddd96c47
Signed-off-by: Lev Stipakov <l= ev@...515...>
Acked-by: Gert Doering <gert@...1296...>
Messa= ge-Id: <20231114141653.10486-1-gert@...1296...>
URL: https://www.m= ail-archive.com/openvpn-devel@lists.sourceforge.net/msg27393.html
Signed= -off-by: Gert Doering <gert@...1296...>
---
M config.h.cmake.in=
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh:=
//gerrit.openvpn.net:29418/openvpn refs/changes/29/429/2
diff --git=
 a/config.h.cmake.in b/config.h.cmake.in
index f2cdd39..1c0= dd6f 100644
--- a/config.h.cmake.in
+++ b/c= onfig.h.cmake.in
@@ -469,8 +469,8 @@
#defi= ne strncasecmp strnicmp
#define strcasecmp _stricmp=

-#define S_= IRUSR 0
-#define S_IWUS= R 0
+#define S_IRUSR = _S_IREAD
+#define S_I= WUSR _S_IWRITE
#define R_OK 4
#define W_O= K 2
#define X_OK 1

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I53eaee85d7b284af6bc63da5f6d= 8f310ddd96c47
Gerrit-Change-Number: 429
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>= ;
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-MessageType: newpatchset
--o9GhJ/pBBUQ=--