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:
Konstantin Belousov 2021-11-04 02:53:21 +02:00
parent 34d8fffff3
commit 7ac82c96fe

View File

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