svn commit: r252885 - stable/9/sys/fs/fdescfs
Jilles Tjoelker
jilles at FreeBSD.org
Sat Jul 6 11:39:37 UTC 2013
Author: jilles
Date: Sat Jul 6 11:39:37 2013
New Revision: 252885
URL: http://svnweb.freebsd.org/changeset/base/252885
Log:
MFC r250567: fdescfs: Supply a real value for d_type in readdir.
All the fdescfs nodes (except . and ..) appear as character devices to
stat(), so DT_CHR is correct.
Modified:
stable/9/sys/fs/fdescfs/fdesc_vnops.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/fs/ (props changed)
Modified: stable/9/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- stable/9/sys/fs/fdescfs/fdesc_vnops.c Sat Jul 6 09:49:01 2013 (r252884)
+++ stable/9/sys/fs/fdescfs/fdesc_vnops.c Sat Jul 6 11:39:37 2013 (r252885)
@@ -538,7 +538,7 @@ fdesc_readdir(ap)
break;
dp->d_namlen = sprintf(dp->d_name, "%d", fcnt);
dp->d_reclen = UIO_MX;
- dp->d_type = DT_UNKNOWN;
+ dp->d_type = DT_CHR;
dp->d_fileno = i + FD_DESC;
break;
}
More information about the svn-src-stable-9
mailing list