git: 7ac82c96fe79 - main - proc_get_binpath(): provide syntaxically correct value for unused NDINIT arg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Nov 2021 00:55:56 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7ac82c96fe79a6a9dcf595ef4860ed75d3511414 commit 7ac82c96fe79a6a9dcf595ef4860ed75d3511414 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-04 00:53:21 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-04 00:55:33 +0000 proc_get_binpath(): provide syntaxically correct value for unused NDINIT arg Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/kern/kern_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index d11f651960c0..21af09265dd2 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -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)