Lines Matching refs:result
178 struct spwd spwd, *result; in nss_spwd_for_passwd() local
184 r = getspnam_r(pwd->pw_name, &spwd, buf, buflen, &result); in nss_spwd_for_passwd()
186 if (!result) in nss_spwd_for_passwd()
189 *ret_spwd = *result; in nss_spwd_for_passwd()
212 struct passwd pwd, *result; in nss_user_record_by_name() local
226 r = getpwnam_r(name, &pwd, buf, buflen, &result); in nss_user_record_by_name()
228 if (!result) in nss_user_record_by_name()
247 r = nss_spwd_for_passwd(result, &spwd, &sbuf); in nss_user_record_by_name()
256 r = nss_passwd_to_user_record(result, sresult, ret); in nss_user_record_by_name()
270 struct passwd pwd, *result; in nss_user_record_by_uid() local
283 r = getpwuid_r(uid, &pwd, buf, buflen, &result); in nss_user_record_by_uid()
285 if (!result) in nss_user_record_by_uid()
303 r = nss_spwd_for_passwd(result, &spwd, &sbuf); in nss_user_record_by_uid()
312 r = nss_passwd_to_user_record(result, sresult, ret); in nss_user_record_by_uid()
393 struct sgrp sgrp, *result; in nss_sgrp_for_group() local
399 r = getsgnam_r(grp->gr_name, &sgrp, buf, buflen, &result); in nss_sgrp_for_group()
401 if (!result) in nss_sgrp_for_group()
404 *ret_sgrp = *result; in nss_sgrp_for_group()
427 struct group grp, *result; in nss_group_record_by_name() local
441 r = getgrnam_r(name, &grp, buf, buflen, &result); in nss_group_record_by_name()
443 if (!result) in nss_group_record_by_name()
461 r = nss_sgrp_for_group(result, &sgrp, &sbuf); in nss_group_record_by_name()
463 … log_debug_errno(r, "Failed to do shadow lookup for group %s, ignoring: %m", result->gr_name); in nss_group_record_by_name()
470 r = nss_group_to_group_record(result, sresult, ret); in nss_group_record_by_name()
484 struct group grp, *result; in nss_group_record_by_gid() local
497 r = getgrgid_r(gid, &grp, buf, buflen, &result); in nss_group_record_by_gid()
499 if (!result) in nss_group_record_by_gid()
516 r = nss_sgrp_for_group(result, &sgrp, &sbuf); in nss_group_record_by_gid()
518 … log_debug_errno(r, "Failed to do shadow lookup for group %s, ignoring: %m", result->gr_name); in nss_group_record_by_gid()
525 r = nss_group_to_group_record(result, sresult, ret); in nss_group_record_by_gid()