1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

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.
This commit is contained in:
Jilles Tjoelker 2013-05-12 15:44:49 +00:00
parent 691f7fadcd
commit d3045c081d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250567

View File

@ -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;
}