This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/opendir-extra-stat created. glibc-2.22-208-g3d7ef02
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 3 Sep 2015 23:11:16 -0000
- Subject: GNU C Library master sources branch roland/opendir-extra-stat created. glibc-2.22-208-g3d7ef02
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/opendir-extra-stat has been created
at 3d7ef021fafb46a4f31ecc9e5665750f684180f3 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3d7ef021fafb46a4f31ecc9e5665750f684180f3
commit 3d7ef021fafb46a4f31ecc9e5665750f684180f3
Author: Roland McGrath <roland@hack.frob.com>
Date: Thu Sep 3 16:06:07 2015 -0700
BZ#18921: Fix opendir inverted o_directory_works test.
diff --git a/ChangeLog b/ChangeLog
index 3d92656..3a6d697 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-09-03 Roland McGrath <roland@hack.frob.com>
+
+ [BZ #18921]
+ * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
+ Fix inverted sense of test of 'o_directory_works' value.
+ Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
+ Bernhard Voelker <mail@bernhard-voelker.de>.
+
2015-09-03 Joseph Myers <joseph@codesourcery.com>
[BZ #14912]
diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c
index 6509f5c..9edf056 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;
}
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources