1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 06:00:54 +01:00

22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions.

This commit is contained in:
Clint Adams 2006-02-19 19:36:31 +00:00
parent 930c18ee44
commit a915138852
8 changed files with 62 additions and 13 deletions

View file

@ -166,13 +166,13 @@ statgidprint(gid_t gid, char *outbuf, int flags)
strcat(outbuf, " (");
}
if (flags & STF_STRING) {
#ifdef HAVE_GETGRGID
#ifdef USE_GETGRGID
struct group *gr;
gr = getgrgid(gid);
if (gr)
strcat(outbuf, gr->gr_name);
else
#endif /* !HAVE_GETGRGID */
#endif /* !USE_GETGRGID */
{
char *optr;
for (optr = outbuf; *optr; optr++)