From: Michael Rothwell Date: Fri, 30 Sep 2016 16:46:48 +0000 (-0700) Subject: Call the correct function. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e15d3291c823bda57c82eda964b0427cc95d804;p=thirdparty%2Fglibc.git Call the correct function. --- diff --git a/nss/nss_borg/borg-pwd.c b/nss/nss_borg/borg-pwd.c index 4f6c5443e80..9b68b9bec72 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 {