Correct for proper vn_fullpath() failure mode: "== -1" -> "!= 0"

Discussed with:	des
This commit is contained in:
Robert Watson 2004-01-12 03:14:37 +00:00
parent b64a0ad5c1
commit 09dbf7a214

View File

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