diff options
author | jhb <jhb@FreeBSD.org> | 2009-02-13 15:32:03 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-02-13 15:32:03 +0000 |
commit | 7ef64c1bf9450b1055bdf677fadff7349922f02d (patch) | |
tree | ddc3a3f23b7d86efc7db87c646435ff56bfe68e0 /sys/compat | |
parent | f34bfbb6558e5ae7f3a4f0f1042c32586c685ba8 (diff) | |
download | FreeBSD-src-7ef64c1bf9450b1055bdf677fadff7349922f02d.zip FreeBSD-src-7ef64c1bf9450b1055bdf677fadff7349922f02d.tar.gz |
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
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index bf2b10c..606cd69 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -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)); |