Andreas Schwab
eb7479f1eb
- opendir-o-directory-check.patch: Fix opendir inverted o_directory_works test - static-dlopen.patch: Static dlopen default library search path fix (bsc#937853) - mntent-blank-line.patch: Fix memory corruption w/blank lines OBS-URL: https://build.opensuse.org/request/show/329759 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=414
22 lines
729 B
Diff
22 lines
729 B
Diff
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>.
|
|
|
|
Index: glibc-2.22/sysdeps/posix/opendir.c
|
|
===================================================================
|
|
--- glibc-2.22.orig/sysdeps/posix/opendir.c
|
|
+++ glibc-2.22/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;
|
|
}
|