dcb3eb nss: do not modify errno when NSS_STATUS_NOTFOUND or NSS_STATUS_SUCCESS

4 files Authored by Yu Watanabe 4 years ago, Committed by Packit Service 4 years ago,
    nss: do not modify errno when NSS_STATUS_NOTFOUND or NSS_STATUS_SUCCESS
    
    This also adds PROTECT_ERRNO for all nss module functions.
    
    C.f. glibc NSS documents https://www.gnu.org/software/libc/manual/html_node/NSS-Modules-Interface.html
    and discussion in https://sourceware.org/bugzilla/show_bug.cgi?id=23410.
    
    Fixes #9585.
    
    (cherry picked from commit 06202b9e659e5cc72aeecc5200155b7c012fccbc)
    
    Resolves: #1691691
    
    patch_name: 0121-nss-do-not-modify-errno-when-NSS_STATUS_NOTFOUND-or-.patch
    present_in_specfile: true
    location_in_specfile: 121
    squash_commits: true
    
        
file modified
+39 -48
file modified
+26 -48