The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=02de91d740235f186321d7d3e11d09737daba43e
commit 02de91d740235f186321d7d3e11d09737daba43e Author: Konstantin Belousov <k...@freebsd.org> AuthorDate: 2021-11-03 15:11:33 +0000 Commit: Konstantin Belousov <k...@freebsd.org> CommitDate: 2021-11-03 15:30:10 +0000 proc_get_binpath(): return empty string instead of NULL for strange case where queried process does not have text. Reported by: Michael Butler <i...@protected-networks.net> 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 2156c5c465ba..d11f651960c0 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -2252,7 +2252,7 @@ proc_get_binpath(struct proc *p, char *binname, char **retbuf, vp = p->p_textvp; if (vp == NULL) { PROC_UNLOCK(p); - *retbuf = NULL; + *retbuf = ""; *freebuf = NULL; return (0); }