aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Rothwell <mrothwell@google.com>2016-09-30 09:46:48 -0700
committerMichael Rothwell <mrothwell@google.com>2016-09-30 09:46:48 -0700
commit929275c19315abec2eb854c976751f2745572a8e (patch)
tree6fd1ea0de4a265cc156203ee694ecf81d044fbb2
parentad9d6e1dbecb0dabe522d6efc793a4bc2bee2140 (diff)
downloadglibc-929275c19315abec2eb854c976751f2745572a8e.zip
glibc-929275c19315abec2eb854c976751f2745572a8e.tar.gz
glibc-929275c19315abec2eb854c976751f2745572a8e.tar.bz2
Call the correct function.
-rw-r--r--nss/nss_borg/borg-pwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/nss_borg/borg-pwd.c b/nss/nss_borg/borg-pwd.c
index 97a9a93..f8927e2 100644
--- a/nss/nss_borg/borg-pwd.c
+++ b/nss/nss_borg/borg-pwd.c
@@ -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 {