Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2009 15:32:03 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188579 - head/sys/compat/linprocfs
Message-ID:  <200902131532.n1DFW3tw092210@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Feb 13 15:32:03 2009
New Revision: 188579
URL: http://svn.freebsd.org/changeset/base/188579

Log:
  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.
  
  Submitted by:	Artem Belevich  fbsdlist of src.cx
  MFC after:	3 days

Modified:
  head/sys/compat/linprocfs/linprocfs.c

Modified: head/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- head/sys/compat/linprocfs/linprocfs.c	Fri Feb 13 15:14:43 2009	(r188578)
+++ head/sys/compat/linprocfs/linprocfs.c	Fri Feb 13 15:32:03 2009	(r188579)
@@ -327,7 +327,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?200902131532.n1DFW3tw092210>