From: Ulrich Drepper Date: Sat, 7 Feb 2009 17:00:27 +0000 (+0000) Subject: * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define. X-Git-Tag: upstream/2.30~13826 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc16e0c4670f13510d0abb6d868d6b243b0e1b4b;p=external%2Fglibc.git * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define. --- diff --git a/ChangeLog b/ChangeLog index 155e684..e065df1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-02-07 Ulrich Drepper + + * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define. + 2009-02-06 Ulrich Drepper [BZ #7095] diff --git a/grp/compat-initgroups.c b/grp/compat-initgroups.c index 374f42a..7bcc203 100644 --- a/grp/compat-initgroups.c +++ b/grp/compat-initgroups.c @@ -8,6 +8,13 @@ typedef enum nss_status (*end_function) (void); typedef enum nss_status (*get_function) (struct group *, char *, size_t, int *); +/* This file is also used in nscd where __libc_alloca_cutoff is not + available. */ +#ifdef NOT_IN_libc +# define __libc_use_alloca(size) ((size) < __MAX_ALLOCA_CUTOFF * 4) +#endif + + static enum nss_status compat_call (service_user *nip, const char *user, gid_t group, long int *start, long int *size, gid_t **groupsp, long int limit, int *errnop)