- if (grent_fct_start == NULL)
- __nss_group_nonlocal_lookup(&grent_startp, grent_fct_name,
- &grent_fct_start);
+ if (!grent_initialized) {
+ __nss_group_nonlocal_lookup2(&grent_startp, grent_fct_name, NULL,
+ &grent_fct_start);
+ __sync_synchronize();
+ grent_initialized = true;
+ }