svn commit: r188579 - head/sys/compat/linprocfs
John Baldwin
jhb at FreeBSD.org
Fri Feb 13 07:32:04 PST 2009
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));
More information about the svn-src-all
mailing list