HomeFreeBSD

fexecve(2): restore the attempts to calculate the executable path

Description

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

Details

Provenance
kibAuthored on Nov 3 2021, 12:58 PM
Parents
rGc537bf9d5903: date: Capitalize seconds string in synopses
Branches
Unknown
Tags
Unknown