From 91da896a3ed31b04ac85972c5dcacdf35fa7730b Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 5 Dec 2018 11:10:03 -0800 Subject: [PATCH] Add a note about passwd.borg.base organization --- nss/nss_borg/borg-pwd.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2