diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2021-09-22 13:36:57 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2021-09-22 13:36:57 +0900 |
commit | dd51ffa5b4b9759af2667df8e4505f117b8e2b23 (patch) | |
tree | f54d284d8fd25e571e53b139fa9829c101fe5b37 /Src/hashnameddir.c | |
parent | db46c9cd5844240fb6015666c8e2a12a0a3a6ead (diff) | |
download | zsh-dd51ffa5b4b9759af2667df8e4505f117b8e2b23.tar.gz zsh-dd51ffa5b4b9759af2667df8e4505f117b8e2b23.tar.xz zsh-dd51ffa5b4b9759af2667df8e4505f117b8e2b23.zip |
49422: improve support of --disable-dynamic-nss
see also 49392 (Vincent) and 49412 (Axel)
Diffstat (limited to 'Src/hashnameddir.c')
-rw-r--r-- | Src/hashnameddir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/hashnameddir.c b/Src/hashnameddir.c index bed43d025..cbd1344ef 100644 --- a/Src/hashnameddir.c +++ b/Src/hashnameddir.c @@ -178,7 +178,7 @@ fillnameddirtable(UNUSED(HashTable ht)) /* Using NIS or NIS+ didn't add any user directories. This seems * fishy, so we fall back to using getpwent(). If we don't have * that, we only use the passwd file. */ -#ifdef HAVE_GETPWENT +#ifdef USE_GETPWENT struct passwd *pw; setpwent(); @@ -190,7 +190,7 @@ fillnameddirtable(UNUSED(HashTable ht)) endpwent(); usepwf = 0; -#endif /* HAVE_GETPWENT */ +#endif /* USE_GETPWENT */ } if (usepwf) { /* Don't forget the non-NIS matches from the flat passwd file */ @@ -229,7 +229,7 @@ fillnameddirtable(UNUSED(HashTable ht)) adduserdir(pw->pw_name, pw->pw_dir, ND_USERNAME, 1); endpwent(); -#endif /* HAVE_GETPWENT */ +#endif /* USE_GETPWENT */ #endif allusersadded = 1; } |