mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 22:00:08 +00:00
Call the correct function.
This commit is contained in:
parent
f098d7ac4c
commit
4e15d3291c
@ -87,12 +87,12 @@ static enum nss_status _nss_borg_getpwent_r_locked(struct passwd *result,
|
||||
|
||||
enum nss_status ret;
|
||||
|
||||
if (f != NULL
|
||||
&& fgetpwent_r(f, result, buffer, buflen, &result) == 0) {
|
||||
if (
|
||||
f != NULL && (fgetpwent_r(f, result, buffer, buflen, &result) == 0)) {
|
||||
DEBUG("Returning borg user %d:%s\n", result->pw_uid, result->pw_name);
|
||||
ret = NSS_STATUS_SUCCESS;
|
||||
} else if (fb != NULL
|
||||
&& getpwent_r(fb, result, buffer, buflen, &result) == 0) {
|
||||
} else if (
|
||||
fb != NULL && (fgetpwent_r(fb, result, buffer, buflen, &result) == 0)) {
|
||||
DEBUG("Returning base user %d:%s\n", result->pw_uid, result->pw_name);
|
||||
ret = NSS_STATUS_SUCCESS;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user