]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add a note about passwd.borg.base organization
authorStan Shebs <stanshebs@google.com>
Wed, 5 Dec 2018 19:10:03 +0000 (11:10 -0800)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:15 +0000 (17:23 -0700)
nss/nss_borg/borg-pwd.c

index 1f685ee443e815bf57370ff6fb8bb6888964a940..a0eb0e395456ad5eb22bd475fc871026e0260db6 100644 (file)
@@ -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;