Correct for proper vn_fullpath() failure mode: "== -1" -> "!= 0"
Discussed with: des
This commit is contained in:
parent
b64a0ad5c1
commit
09dbf7a214
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user