X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/blobdiff_plain/75301651b361a92a27ee01a6a805f372ad88a8fb..9cd080be89db78f3172c062c5d95603a6b6964d7:/nonlocal-shadow.c diff --git a/nonlocal-shadow.c b/nonlocal-shadow.c index ab8f442..386230c 100644 --- a/nonlocal-shadow.c +++ b/nonlocal-shadow.c @@ -113,6 +113,11 @@ _nss_nonlocal_getspent_r(struct spwd *pwd, char *buffer, size_t buflen, int *errnop) { enum nss_status status; + + char *nonlocal_ignore = getenv(NONLOCAL_IGNORE_ENV); + if (nonlocal_ignore != NULL && nonlocal_ignore[0] != '\0') + return NSS_STATUS_UNAVAIL; + if (spent_nip == NULL) { status = _nss_nonlocal_setspent(0); if (status != NSS_STATUS_SUCCESS)