From: Stan Shebs Date: Wed, 5 Dec 2018 19:10:03 +0000 (-0800) Subject: Add a note about passwd.borg.base organization X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91da896a3ed31b04ac85972c5dcacdf35fa7730b;p=thirdparty%2Fglibc.git Add a note about passwd.borg.base organization --- diff --git a/nss/nss_borg/borg-pwd.c b/nss/nss_borg/borg-pwd.c index 1f685ee443e..a0eb0e39545 100644 --- a/nss/nss_borg/borg-pwd.c +++ b/nss/nss_borg/borg-pwd.c @@ -95,6 +95,7 @@ static enum nss_status _nss_borg_getpwent_r_locked(struct passwd *result, ret = NSS_STATUS_SUCCESS; } else if ( // Yes, this is one of those cases where an assign makes sense. + // NB: passwd.borg.base is not ordered by UID as of cl/201005022. fb != NULL && (result = sparecopy) && (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;