Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2009 15:58:42 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r188717 - in stable/7/sys: . compat/linprocfs contrib/pf dev/ath/ath_hal dev/cxgb
Message-ID:  <200902171558.n1HFwgPq020070@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Feb 17 15:58:42 2009
New Revision: 188717
URL: http://svn.freebsd.org/changeset/base/188717

Log:
  MFC: Fix a bug in the previous change to the mtab handler: use the path
  returned by vn_fullpath() when vn_fullpath() succeeds instead of when it
  fails.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/compat/linprocfs/linprocfs.c
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)

Modified: stable/7/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- stable/7/sys/compat/linprocfs/linprocfs.c	Tue Feb 17 15:54:09 2009	(r188716)
+++ stable/7/sys/compat/linprocfs/linprocfs.c	Tue Feb 17 15:58:42 2009	(r188717)
@@ -317,7 +317,7 @@ linprocfs_domtab(PFS_FILL_ARGS)
 	error = namei(&nd);
 	lep = linux_emul_path;
 	if (error == 0) {
-		if (vn_fullpath(td, nd.ni_vp, &dlep, &flep) != 0)
+		if (vn_fullpath(td, nd.ni_vp, &dlep, &flep) == 0)
 			lep = dlep;
 		vrele(nd.ni_vp);
 		VFS_UNLOCK_GIANT(NDHASGIANT(&nd));



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