about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-02-19 19:36:31 +0000
committerClint Adams <clint@users.sourceforge.net>2006-02-19 19:36:31 +0000
commita9151388528c84d7993a366ae03b57f5a413ca78 (patch)
tree14e46a64fdf4d09ad98b431863d2442b3db60301 /Src/init.c
parent930c18ee44a562c915171fda9158dd613e7d97db (diff)
downloadzsh-a9151388528c84d7993a366ae03b57f5a413ca78.tar.gz
zsh-a9151388528c84d7993a366ae03b57f5a413ca78.tar.xz
zsh-a9151388528c84d7993a366ae03b57f5a413ca78.zip
22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions.
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/init.c b/Src/init.c
index ac04a90e2..2bb5e0dbd 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -628,7 +628,7 @@ init_term(void)
 void
 setupvals(void)
 {
-#ifdef HAVE_GETPWUID
+#ifdef USE_GETPWUID
     struct passwd *pswd;
 #endif
     struct timezone dummy_tz;
@@ -796,14 +796,14 @@ setupvals(void)
     cached_uid = getuid();
 
     /* Get password entry and set info for `USERNAME' */
-#ifdef HAVE_GETPWUID
+#ifdef USE_GETPWUID
     if ((pswd = getpwuid(cached_uid))) {
 	if (emulation == EMULATE_ZSH)
 	    home = metafy(pswd->pw_dir, -1, META_DUP);
 	cached_username = ztrdup(pswd->pw_name);
     }
     else
-#endif /* HAVE_GETPWUID */
+#endif /* USE_GETPWUID */
     {
 	if (emulation == EMULATE_ZSH)
 	    home = ztrdup("/");