mirror of
https://github.com/mirror/make.git
synced 2025-01-07 02:40:59 +08:00
Formerly job.c.~103~
This commit is contained in:
parent
c5c92b71ce
commit
6c6f210456
6
job.c
6
job.c
@ -975,15 +975,15 @@ search_path (file, path, program)
|
|||||||
#endif
|
#endif
|
||||||
static int ngroups = -1;
|
static int ngroups = -1;
|
||||||
#ifdef NGROUPS_MAX
|
#ifdef NGROUPS_MAX
|
||||||
static gid_t groups[NGROUPS_MAX];
|
static GETGROUPS_T groups[NGROUPS_MAX];
|
||||||
#define ngroups_max NGROUPS_MAX
|
#define ngroups_max NGROUPS_MAX
|
||||||
#else
|
#else
|
||||||
static gid_t *groups = 0;
|
static GETGROUPS_T *groups = 0;
|
||||||
static int ngroups_max;
|
static int ngroups_max;
|
||||||
if (groups == 0)
|
if (groups == 0)
|
||||||
{
|
{
|
||||||
ngroups_max = GET_NGROUPS_MAX;
|
ngroups_max = GET_NGROUPS_MAX;
|
||||||
groups = (gid_t *) malloc (ngroups_max * sizeof (gid_t));
|
groups = (GETGROUPS_T *) malloc (ngroups_max * sizeof (GETGROUPS_T));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (groups != 0 && ngroups == -1)
|
if (groups != 0 && ngroups == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user