]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fexecve(2): restore the attempts to calculate the executable path
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 3 Nov 2021 12:58:03 +0000 (14:58 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 3 Nov 2021 13:10:22 +0000 (15:10 +0200)
commite4ce23b238a162f5d36afe8ef49dcd66901138a1
tree5fcc7d1adea508c27b061cc090bb510ed3f78d0d
parentc537bf9d5903d0689321f83691341c93b5919172
fexecve(2): restore the attempts to calculate the executable path

vn_fullpath() call was not converted to pass newtextvp, instead it used
imgp->vp which is still NULL there.  As result vn_fullpath() always
returned EINVAL and execpath was recorded from the value of arg0.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
sys/kern/kern_exec.c