Author: ume Date: Fri Mar 16 14:05:45 2018 New Revision: 331055 URL: https://svnweb.freebsd.org/changeset/base/331055
Log: MFC r330681: Fix Bad file descriptor error. Modified: stable/11/sys/fs/fdescfs/fdesc_vnops.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/fs/fdescfs/fdesc_vnops.c ============================================================================== --- stable/11/sys/fs/fdescfs/fdesc_vnops.c Fri Mar 16 13:33:42 2018 (r331054) +++ stable/11/sys/fs/fdescfs/fdesc_vnops.c Fri Mar 16 14:05:45 2018 (r331055) @@ -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, _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"