HomeFreeBSD

libc: treat execvpe as a week symbol

Description

libc: treat execvpe as a week symbol

Some program intercepts the execvpe call in runtime. At the same time, the
implementation of posix_spwan use execvpe. If execvpe is intercepted and
then calls posix_spawn when intercepted. It wil create a infinite loop
because the intercepted execvpe will spawn a posix_spwan call and will be
intercepted again.

See https://github.com/rizsotto/Bear/issues/557 for reference.

Reviewed by: brooks, kib, emaste
Sponsored by: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49733

Details

Provenance
aokblastAuthored on Wed, Apr 2, 8:35 PM
emasteCommitted on Tue, Apr 22, 6:12 PM
Reviewer
brooks
Differential Revision
D49733: libc: add execvpe to weak symbol as gnu libc does
Parents
rG12668eadcb82: bsd.compiler.mk: Add a blocks compiler feature.
Branches
Unknown
Tags
Unknown