aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-09-04 14:37:56 -0700
committerMike Frysinger <vapier@gentoo.org>2015-10-10 20:03:27 -0400
commitcdb1aad567b85b880a1325eb88555b8c8da9159b (patch)
treef3e926d4275b3e86225fbd87e41f0652a6d5f7ac
parent6ff3aac23c2caa5c669e74da5f6c5a7264f51e39 (diff)
downloadglibc-cdb1aad567b85b880a1325eb88555b8c8da9159b.tar
glibc-cdb1aad567b85b880a1325eb88555b8c8da9159b.tar.gz
glibc-cdb1aad567b85b880a1325eb88555b8c8da9159b.tar.bz2
glibc-cdb1aad567b85b880a1325eb88555b8c8da9159b.zip
BZ#18921: Fix opendir inverted o_directory_works test.
(cherry picked from commit bd9e69abb887d78d0d6708fc089cc9f3eabf106d) (cherry picked from commit 5c8c3123652045191474a4ca85fbb6e8d9e7d2bc)
-rw-r--r--sysdeps/posix/opendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c
index 6509f5c05c..9edf056fb3 100644
--- a/sysdeps/posix/opendir.c
+++ b/sysdeps/posix/opendir.c
@@ -105,7 +105,7 @@ need_isdir_precheck (void)
tryopen_o_directory ();
/* We can skip the expensive `stat' call if O_DIRECTORY works. */
- return o_directory_works > 0;
+ return o_directory_works < 0;
#endif
return true;
}