diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-01-12 03:14:37 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-01-12 03:14:37 +0000 |
commit | 86b7a1a18049fb964b0c2f4e422256cd6b95c0e1 (patch) | |
tree | ceca0d8742a610a4c2ada0956afbd7070134d175 /sys/compat | |
parent | da910667474a68ea0404151c8d3f9410ffcb149e (diff) | |
download | FreeBSD-src-86b7a1a18049fb964b0c2f4e422256cd6b95c0e1.zip FreeBSD-src-86b7a1a18049fb964b0c2f4e422256cd6b95c0e1.tar.gz |
Correct for proper vn_fullpath() failure mode: "== -1" -> "!= 0"
Discussed with: des
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 c02a2e8..5b6893c 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -352,7 +352,7 @@ linprocfs_domtab(PFS_FILL_ARGS) /* resolve symlinks etc. in the emulation tree prefix */ NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, linux_emul_path, td); flep = NULL; - if (namei(&nd) != 0 || vn_fullpath(td, nd.ni_vp, &dlep, &flep) == -1) + if (namei(&nd) != 0 || vn_fullpath(td, nd.ni_vp, &dlep, &flep) != 0) lep = linux_emul_path; else lep = dlep; |