Decode file type returned by getdents system call
* file.c (sys_getdents): Decode d_type in unabbreviated mode.
diff --git a/file.c b/file.c
index 6bbeb57..b952e7f 100644
--- a/file.c
+++ b/file.c
@@ -2276,8 +2276,10 @@
if (!abbrev(tcp)) {
tprintf("%s{d_ino=%lu, d_off=%lu, ",
i ? " " : "", d->d_ino, d->d_off);
- tprintf("d_reclen=%u, d_name=\"%s\"}",
+ tprintf("d_reclen=%u, d_name=\"%s\", d_type=",
d->d_reclen, d->d_name);
+ printxval(direnttypes, buf[i + d->d_reclen - 1], "DT_???");
+ tprints("}");
}
if (!d->d_reclen) {
tprints("/* d_reclen == 0, problem here */");