From: Bruno Haible Date: Mon, 2 Jun 2025 10:50:04 +0000 (+0200) Subject: open: Fix syntax error on native Windows (regression 2025-05-28). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9ec1a1ef7ccb81727a6963dea6b2bafa0aa2d5;p=thirdparty%2Fgnulib.git open: Fix syntax error on native Windows (regression 2025-05-28). * lib/open.c (open): Add missing parenthesis. --- diff --git a/ChangeLog b/ChangeLog index e168863f67..9bb85638d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-06-02 Bruno Haible + + open: Fix syntax error on native Windows (regression 2025-05-28). + * lib/open.c (open): Add missing parenthesis. + 2025-06-01 Bruno Haible gettext-h: Avoid warnings from "gcc -Wextra". diff --git a/lib/open.c b/lib/open.c index 624572c8dd..3da2dce072 100644 --- a/lib/open.c +++ b/lib/open.c @@ -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