This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch release/2.22/master updated. glibc-2.22-11-g5c8c312
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 4 Sep 2015 22:29:59 -0000
- Subject: GNU C Library master sources branch release/2.22/master updated. glibc-2.22-11-g5c8c312
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, release/2.22/master has been updated
via 5c8c3123652045191474a4ca85fbb6e8d9e7d2bc (commit)
from 36c6e27a26b0afe0187f8790990cf880abdbf244 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5c8c3123652045191474a4ca85fbb6e8d9e7d2bc
commit 5c8c3123652045191474a4ca85fbb6e8d9e7d2bc
Author: Roland McGrath <roland@hack.frob.com>
Date: Fri Sep 4 14:37:56 2015 -0700
BZ#18921: Fix opendir inverted o_directory_works test.
(cherry picked from commit bd9e69abb887d78d0d6708fc089cc9f3eabf106d)
diff --git a/ChangeLog b/ChangeLog
index d0d2cbd..44809a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-09-04 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-08-31 Brett Neumeier <brett@neumeier.us>
[BZ #18870]
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;
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
sysdeps/posix/opendir.c | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources