svn commit: trunk/uClibc/libc/sysdeps/linux/common

vapier at uclibc.org vapier at uclibc.org
Sat Feb 4 02:04:02 UTC 2006


Author: vapier
Date: 2006-02-03 18:04:00 -0800 (Fri, 03 Feb 2006)
New Revision: 13823

Log:
we get d_type from the kernel so use it

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/getdents64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/getdents64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/getdents64.c	2006-02-04 01:28:22 UTC (rev 13822)
+++ trunk/uClibc/libc/sysdeps/linux/common/getdents64.c	2006-02-04 02:04:00 UTC (rev 13823)
@@ -86,7 +86,7 @@
 	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);




More information about the uClibc-cvs mailing list