]> andersk Git - nss_nonlocal.git/blobdiff - nonlocal-passwd.c
Don’t reset errno to 0.
[nss_nonlocal.git] / nonlocal-passwd.c
index 40811f9e68ee26ba1d9fa6c13f8b19136afdd8b5..6d70ea2d287a871a46e938608c7646f5292600e4 100644 (file)
@@ -72,7 +72,6 @@ check_nonlocal_uid(const char *user, uid_t uid, int *errnop)
        errno = old_errno;
        return NSS_STATUS_TRYAGAIN;
     }
-    errno = 0;
     ret = getpwuid_r(uid, pwbufp, buf, buflen, &pwbufp);
     if (ret != 0) {
        *errnop = errno;
@@ -101,7 +100,6 @@ check_nonlocal_user(const char *user, int *errnop)
        errno = old_errno;
        return NSS_STATUS_TRYAGAIN;
     }
-    errno = 0;
     ret = getpwnam_r(user, pwbufp, buf, buflen, &pwbufp);
     if (ret != 0) {
        *errnop = errno;
This page took 0.024831 seconds and 4 git commands to generate.