- if (pwent_fct_start == NULL)
- __nss_passwd_nonlocal_lookup(&pwent_startp, pwent_fct_name,
- &pwent_fct_start);
+ if (!pwent_initialized) {
+ __nss_passwd_nonlocal_lookup2(&pwent_startp, pwent_fct_name, NULL,
+ &pwent_fct_start);
+ __sync_synchronize();
+ pwent_initialized = true;
+ }