HomeFreeBSD

MF11 r360876: Merge commit 21e5e1724b75 from llvm git:

Description

MF11 r360876: Merge commit 21e5e1724b75 from llvm git:

getMainExecutable: Fix hand-rolled AT_EXECPATH for older FreeBSD

Once we hit AT_NULL, we need to bail out of the loop; not just the
enclosing switch.  This fixes basic usage (e.g. `cc --version`) when
AT_EXECPATH isn't present on older branches (e.g. under
qemu-user-static, at the moment), where we would previously run off
the end of ::environ.

Patch By: kevans

Reviewed By: arichardson

Approved by: re (kib)

Details

Committed
emasteMay 17 2020, 9:29 PM
Parents
rS361141: Separate errors doing the rpctlscd/rpctlssd upcalls from RPC errors.
Branches
Unknown
Tags
Unknown