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
This commit is contained in:
John Baldwin 2009-02-13 15:32:03 +00:00
parent d685b6ee05
commit 3d744ccdd2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188579

View File

@ -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));