]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
open: Fix syntax error on native Windows (regression 2025-05-28).
authorBruno Haible <bruno@clisp.org>
Mon, 2 Jun 2025 10:50:04 +0000 (12:50 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Jun 2025 10:50:04 +0000 (12:50 +0200)
* lib/open.c (open): Add missing parenthesis.

ChangeLog
lib/open.c

index e168863f6721cc0593af8c546f9d6b0761a6639d..9bb85638d49692be554db0befcfb13d1c62604c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-06-02  Bruno Haible  <bruno@clisp.org>
+
+       open: Fix syntax error on native Windows (regression 2025-05-28).
+       * lib/open.c (open): Add missing parenthesis.
+
 2025-06-01  Bruno Haible  <bruno@clisp.org>
 
        gettext-h: Avoid warnings from "gcc -Wextra".
index 624572c8dd6caf6b286c6549dfe5d08434ee0f0e..3da2dce072c860045d28dbb8f49da1e55150023c 100644 (file)
@@ -194,7 +194,7 @@ open (const char *filename, int flags, ...)
   if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES
       && ((flags & (O_ACCMODE | O_CREAT)) == O_RDONLY
           || (O_SEARCH != O_RDONLY
-              && (flags & (O_ACCMODE | O_CREAT)) == O_SEARCH))
+              && (flags & (O_ACCMODE | O_CREAT)) == O_SEARCH)))
     {
       struct stat statbuf;
       if (check_directory