fdescfs: do not change vnode type on VOP_GETATTR()

There is no point to do it.  The VNON type is good enough for fdescfs
operations, and changing the type on stat(2) is arbitrary and does not
serve much purpose, because we recalculate the returned file type on
each stat(2) anyway.

But setting the type to VLNK has undesired consequence of namei()
trying VOP_READLINK() there, which might fail since it defer the
calculation of path to vn_fullpath().

Submitted by:	Mike <mmpestorich@gmail.com>
PR:	294768
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov
2026-05-03 22:09:15 +03:00
parent b89155be25
commit fbecfc4aa0
-1
View File
@@ -469,7 +469,6 @@ fdesc_getattr(struct vop_getattr_args *ap)
break;
}
vp->v_type = vap->va_type;
return (0);
}