summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-04 02:04:00 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-04 02:04:00 +0000
commitcfdee7ee021f45da878500d0a40c2a03fe99303a (patch)
treebd435c0ed907f3fe30a7e75a79cb7a1d8a28a1eb /libc/sysdeps
parent02ae0a4e9d116c6d5687f3243cf17bf2de923586 (diff)
we get d_type from the kernel so use it
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/getdents64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c
index cb107a856..aa30bd661 100644
--- a/libc/sysdeps/linux/common/getdents64.c
+++ b/libc/sysdeps/linux/common/getdents64.c
@@ -86,7 +86,7 @@ ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes)
dp->d_ino = kdp->d_ino;
dp->d_off = kdp->d_off;
dp->d_reclen = new_reclen;
- dp->d_type = DT_UNKNOWN;
+ dp->d_type = kdp->d_type;
memcpy (dp->d_name, kdp->d_name,
kdp->d_reclen - offsetof (struct kernel_dirent64, d_name));
dp = (struct dirent64 *) ((char *) dp + new_reclen);