proc_get_binpath(): provide syntaxically correct value for unused NDINIT arg
Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
34d8fffff3
commit
7ac82c96fe
@ -2276,7 +2276,7 @@ proc_get_binpath(struct proc *p, char *binname, char **retbuf,
|
||||
* which case we should not report old name.
|
||||
*/
|
||||
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, *retbuf,
|
||||
req->td);
|
||||
curthread);
|
||||
error = namei(&nd);
|
||||
if (error == 0) {
|
||||
if (nd.ni_vp == vp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user