X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsavewd.c;h=625c3cd4408d1ebab0dc785fd74444127dc3c2d8;hb=ae744a742dd10c587ba0f38c180a549275df5a50;hp=bd3d118452ea38d2bc4c97510b6a06e4964606b0;hpb=68aa9462de8a606c435c416a2a0ef94e0f0c40b1;p=gnulib.git diff --git a/lib/savewd.c b/lib/savewd.c index bd3d11845..625c3cd44 100644 --- a/lib/savewd.c +++ b/lib/savewd.c @@ -103,7 +103,8 @@ savewd_chdir (struct savewd *wd, char const *dir, int options, /* Open the directory if requested, or if avoiding a race condition is requested and possible. */ - if (open_result || (options & (O_NOFOLLOW ? SAVEWD_CHDIR_NOFOLLOW : 0))) + if (open_result + || (options & (HAVE_WORKING_O_NOFOLLOW ? SAVEWD_CHDIR_NOFOLLOW : 0))) { fd = open (dir, (O_RDONLY | O_DIRECTORY | O_NOCTTY | O_NONBLOCK