mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Optimize last initgroups patch a bit.
This commit is contained in:
parent
3056dcdb78
commit
eaca75697f
@ -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]
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user