about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/readdir64.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-08-25 17:22:09 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-09-02 09:16:05 -0300
commit804200923df4f40dbde09ea708869d252caba288 (patch)
tree1d1b6560774eb7c7f92953d2bc0040e2068375d8 /sysdeps/unix/sysv/linux/readdir64.c
parentbbedd75c41ff801c7606bbaf1b7bdfc45d3f45a5 (diff)
downloadglibc-804200923df4f40dbde09ea708869d252caba288.tar.gz
glibc-804200923df4f40dbde09ea708869d252caba288.tar.xz
glibc-804200923df4f40dbde09ea708869d252caba288.zip
Use LFS readdir in generic POSIX getcwd [BZ# 22899]
Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/readdir64.c')
-rw-r--r--sysdeps/unix/sysv/linux/readdir64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/readdir64.c b/sysdeps/unix/sysv/linux/readdir64.c
index 7d4b0001b3..170a889c51 100644
--- a/sysdeps/unix/sysv/linux/readdir64.c
+++ b/sysdeps/unix/sysv/linux/readdir64.c
@@ -42,7 +42,11 @@ weak_alias (__readdir64, readdir)
 /* The compat code expects the 'struct direct' with d_ino being a __ino_t
    instead of __ino64_t.  */
 # include <shlib-compat.h>
+# if IS_IN(rtld)
+weak_alias (__readdir64, readdir64)
+# else
 versioned_symbol (libc, __readdir64, readdir64, GLIBC_2_2);
+# endif
 # if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2)
 #  include <olddirent.h>
 #  define __READDIR   attribute_compat_text_section __old_readdir64