mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
BZ#18921: Fix opendir inverted o_directory_works test.
This commit is contained in:
parent
522e02ab8a
commit
bd9e69abb8
@ -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-09-04 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
[BZ #14912]
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user