From a9151388528c84d7993a366ae03b57f5a413ca78 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 19 Feb 2006 19:36:31 +0000 Subject: 22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions. --- Src/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/init.c') 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("/"); -- cgit v1.2.3