Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 2021 02:25:27 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 17aab23bf799 - stable/13 - fexecve(2): restore the attempts to calculate the executable path
Message-ID:  <202111060225.1A62PRD1077597@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=17aab23bf7996f80a52b6471d752ef1320ec25c7

commit 17aab23bf7996f80a52b6471d752ef1320ec25c7
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-03 12:58:03 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-06 02:12:32 +0000

    fexecve(2): restore the attempts to calculate the executable path
    
    (cherry picked from commit e4ce23b238a162f5d36afe8ef49dcd66901138a1)
---
 sys/kern/kern_exec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index cf7af148f5c8..06812a7a93d1 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -505,7 +505,7 @@ interpret:
 		    &newtextvp);
 		if (error)
 			goto exec_fail;
-		if (vn_fullpath(imgp->vp, &imgp->execpath,
+		if (vn_fullpath(newtextvp, &imgp->execpath,
 		    &imgp->freepath) != 0)
 			imgp->execpath = args->fname;
 		vn_lock(newtextvp, LK_SHARED | LK_RETRY);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111060225.1A62PRD1077597>