summaryrefslogtreecommitdiffstats
path: root/sys/fs/fdescfs
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2018-03-16 14:05:45 +0000
committerume <ume@FreeBSD.org>2018-03-16 14:05:45 +0000
commit56f9e5770281a6bd614094064c683c5d4bdde8cd (patch)
tree18c2181ea1b2d6b932cdaba086e66afc0a157e6c /sys/fs/fdescfs
parent956c1286d08172d844e6dd2d6f438874c8a209d9 (diff)
downloadFreeBSD-src-56f9e5770281a6bd614094064c683c5d4bdde8cd.zip
FreeBSD-src-56f9e5770281a6bd614094064c683c5d4bdde8cd.tar.gz
MFC r330681: Fix Bad file descriptor error.
Diffstat (limited to 'sys/fs/fdescfs')
-rw-r--r--sys/fs/fdescfs/fdesc_vnops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 6e5ffef..d3117a5 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/fdesc_vnops.c
@@ -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,
OpenPOWER on IntegriCloud