svn commit: r330681 - head/sys/fs/fdescfs
Hajimu UMEMOTO
ume at FreeBSD.org
Fri Mar 9 04:45:25 UTC 2018
Author: ume
Date: Fri Mar 9 04:45:24 2018
New Revision: 330681
URL: https://svnweb.freebsd.org/changeset/base/330681
Log:
Fix Bad file descriptor error.
MFC after: 1 week
Modified:
head/sys/fs/fdescfs/fdesc_vnops.c
Modified: head/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vnops.c Fri Mar 9 02:55:27 2018 (r330680)
+++ head/sys/fs/fdescfs/fdesc_vnops.c Fri Mar 9 04:45:24 2018 (r330681)
@@ -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,
More information about the svn-src-all
mailing list