Optimize last initgroups patch a bit.

This commit is contained in:
Ulrich Drepper 2010-11-22 11:15:08 -05:00
parent 3056dcdb78
commit eaca75697f
2 changed files with 17 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2010-11-22 Ulrich Drepper <drepper@gmail.com>
* nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
last patch a bit. Pretty printing
2010-05-31 Petr Baudis <pasky@suse.cz>
[BZ #10085]

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1998-2004, 2006, 2007, 2009 Free Software Foundation, Inc.
/* Copyright (C) 1998-2004,2006,2007,2009,2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998.
@ -482,10 +482,10 @@ internal_getgrent_r (ent_t *ent, char *buffer, size_t buflen, const char *user,
ent->need_endgrent = true;
}
ent->skip_initgroups_dyn = true;
}
if (ent->skip_initgroups_dyn && nss_getgrent_r == NULL)
if (nss_getgrent_r == NULL)
return NSS_STATUS_UNAVAIL;
}
ent->files = false;