Problem reported by Liam Stitt <https://bugs.gnu.org/78924>. * lib/open.c, lib/openat.c (HAVE_WORKING_O_DIRECTORY): Default to false, fixing a typo. --- ChangeLog | 7 +++++++ lib/open.c | 4 ++++ lib/openat.c | 4 ++++ 3 files changed, 15 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 599f5d9621..21da189bcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-06-29 Paul Eggert <egg...@cs.ucla.edu> + + open, openat: port O_DIRECTORY changes to OS X + Problem reported by Liam Stitt <https://bugs.gnu.org/78924>. + * lib/open.c, lib/openat.c (HAVE_WORKING_O_DIRECTORY): + Default to false, fixing a typo. + 2025-06-28 Bruno Haible <br...@clisp.org> options: Avoid -Wmissing-field-initializers warnings. diff --git a/lib/open.c b/lib/open.c index 8356c14f5b..d76372fd60 100644 --- a/lib/open.c +++ b/lib/open.c @@ -55,6 +55,10 @@ orig_open (const char *filename, int flags, mode_t mode) #include <sys/stat.h> #include <unistd.h> +#ifndef HAVE_WORKING_O_DIRECTORY +# define HAVE_WORKING_O_DIRECTORY false +#endif + #ifndef OPEN_TRAILING_SLASH_BUG # define OPEN_TRAILING_SLASH_BUG false #endif diff --git a/lib/openat.c b/lib/openat.c index e7560259d7..caff516f0e 100644 --- a/lib/openat.c +++ b/lib/openat.c @@ -55,6 +55,10 @@ orig_openat (int fd, char const *filename, int flags, mode_t mode) #include <string.h> #include <sys/stat.h> +#ifndef HAVE_WORKING_O_DIRECTORY +# define HAVE_WORKING_O_DIRECTORY false +#endif + #ifndef OPEN_TRAILING_SLASH_BUG # define OPEN_TRAILING_SLASH_BUG false #endif -- 2.48.1