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/utils.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/utils.c')
-rw-r--r-- | Src/utils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/utils.c b/Src/utils.c index c32741ca7..a74c8bd2c 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1119,7 +1119,7 @@ char *cached_username; char * get_username(void) { -#ifdef HAVE_GETPWUID +#ifdef USE_GETPWUID struct passwd *pswd; uid_t current_uid; @@ -1132,9 +1132,9 @@ get_username(void) else cached_username = ztrdup(""); } -#else /* !HAVE_GETPWUID */ +#else /* !USE_GETPWUID */ cached_uid = getuid(); -#endif /* !HAVE_GETPWUID */ +#endif /* !USE_GETPWUID */ return cached_username; } @@ -1310,7 +1310,7 @@ getnameddir(char *name) return str; } -#ifdef HAVE_GETPWNAM +#ifdef USE_GETPWNAM { /* Retrieve an entry from the password table/database for this user. */ struct passwd *pw; @@ -1326,7 +1326,7 @@ getnameddir(char *name) return dupstring(pw->pw_dir); } } -#endif /* HAVE_GETPWNAM */ +#endif /* USE_GETPWNAM */ /* There are no more possible sources of directory names, so give up. */ return NULL; |