diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-09-04 14:37:56 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-09-04 14:37:56 -0700 |
commit | bd9e69abb887d78d0d6708fc089cc9f3eabf106d (patch) | |
tree | 70af9c41f9bc8959f688efb08f66ec7668f2dba4 /sysdeps/posix/opendir.c | |
parent | 522e02ab8a7484881ca8290c6cd245d33867d5d4 (diff) | |
download | glibc-bd9e69abb887d78d0d6708fc089cc9f3eabf106d.tar.gz glibc-bd9e69abb887d78d0d6708fc089cc9f3eabf106d.tar.xz glibc-bd9e69abb887d78d0d6708fc089cc9f3eabf106d.zip |
BZ#18921: Fix opendir inverted o_directory_works test.
Diffstat (limited to 'sysdeps/posix/opendir.c')
-rw-r--r-- | sysdeps/posix/opendir.c | 2 |
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; } |