svn commit: r250567 - head/sys/fs/fdescfs
Jilles Tjoelker
jilles at FreeBSD.org
Wed May 15 05:27:53 UTC 2013
Author: jilles
Date: Sun May 12 15:44:49 2013
New Revision: 250567
URL: http://svnweb.freebsd.org/changeset/base/250567
Log:
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:
head/sys/fs/fdescfs/fdesc_vnops.c
Modified: head/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vnops.c Sun May 12 15:29:35 2013 (r250566)
+++ head/sys/fs/fdescfs/fdesc_vnops.c Sun May 12 15:44:49 2013 (r250567)
@@ -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;
}
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the svn-src-head
mailing list