git: 17aab23bf799 - stable/13 - fexecve(2): restore the attempts to calculate the executable path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Nov 2021 02:25:27 UTC
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);