Fix Bad file descriptor error.

MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2018-03-09 04:45:24 +00:00
parent dd51fec3b9
commit 9f5fab694c

View File

@ -415,6 +415,8 @@ fdesc_pathconf(struct vop_pathconf_args *ap)
*ap->a_retval = 1;
return (0);
default:
if (VTOFDESC(vp)->fd_type == Froot)
return (vop_stdpathconf(ap));
vref(vp);
VOP_UNLOCK(vp, 0);
error = kern_fpathconf(curthread, VTOFDESC(vp)->fd_fd,