From 57815fd837f5e55612ef781991ec0a5f1c91f4a3 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 30 Mar 2001 00:12:38 +0000 Subject: [PATCH] fix-readdir-hint-20010329 "Under 2.4.x kernels, there is a file type in the result of readdir to help applications optimize directory traversal. With usfficiently new libc compiled against sufficiently new kernel headers, this is exported to applications. Several applications, including fileutils use this information. AFS asserts that all files are directories. This sucks, because among other things it causes rm -rf not to work." --- src/afs/LINUX/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index f6d680fa4..2da94cb79 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -231,7 +231,7 @@ tagain: /* filldir returns -EINVAL when the buffer is full. */ #ifdef AFS_LINUX24_ENV - code = (*filldir)(dirbuf, de->name, len, offset, ino, DT_DIR); + code = (*filldir)(dirbuf, de->name, len, offset, ino, DT_UNKNOWN); #else code = (*filldir)(dirbuf, de->name, len, offset, ino); #endif -- 2.39.5