about summary refs log tree commit diff
path: root/nss/tst-nss-test_errno.c
Commit message (Collapse)AuthorAgeFilesLines
* nss: Protect against errno changes in function lookup (bug 28953)Florian Weimer2022-03-111-0/+61
dlopen may clobber errno. The nss_test_errno module uses an ELF constructor to achieve that, but there could be internal errors during dlopen that cause this, too. Therefore, the NSS framework has to guard against such errno clobbers. __nss_module_get_function is currently the only function that calls __nss_module_load, so it is sufficient to save and restore errno around this call. Reviewed-by: Carlos O'Donell <carlos@redhat.com>