Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shared: ensure errno always zero on entering main
standards do not require errno to be reset to zero before entering main, third party libraries like openssl and libcap(1) use ELF constructors that if buggy (1) will clobber errno value to everybody else. Libselinux also clobbers errno in most tests cases (2) ensure that is set to zero before starting. (1) https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=f25a1b7e69f7b33e6afb58b3e38f3450b7d2d9a0 (2) SELinuxProject/selinux#445
- Loading branch information