aboutsummaryrefslogtreecommitdiff
path: root/io/fts.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-02 21:45:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-02 21:45:38 +0200
commit97c7a6a68beab2e1c771ab7787607c6cafa56591 (patch)
tree8e051d9b0a69733fbf2c41ccda3d95a42f190f9c /io/fts.c
parentdba2bdbe75bcb62e62133b7c4a807a2c45c098a7 (diff)
downloadglibc-97c7a6a68beab2e1c771ab7787607c6cafa56591.zip
glibc-97c7a6a68beab2e1c771ab7787607c6cafa56591.tar.gz
glibc-97c7a6a68beab2e1c771ab7787607c6cafa56591.tar.bz2
Revert __dirfd PLT avoidance for now
* io/fts.c (fts_build): Call dirfd instead of __dirfd.
Diffstat (limited to 'io/fts.c')
-rw-r--r--io/fts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/fts.c b/io/fts.c
index a30491c..ad9d333 100644
--- a/io/fts.c
+++ b/io/fts.c
@@ -680,7 +680,7 @@ fts_build (FTSOBJ *sp, int type)
*/
cderrno = 0;
if (nlinks || type == BREAD) {
- if (fts_safe_changedir(sp, cur, __dirfd(dirp), NULL)) {
+ if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) {
if (nlinks && type == BREAD)
cur->fts_errno = errno;
cur->fts_flags |= FTS_DONTCHDIR;