Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2018 04:45:24 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330681 - head/sys/fs/fdescfs
Message-ID:  <201803090445.w294jOi6017378@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803090445.w294jOi6017378>