2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-03-31 14:01:18 +08:00
Sergei Trofimovich c3479fb793 nsswitch: return result when nss database is locked [BZ ]
Before the change nss_database_check_reload_and_get() did not populate
the '*result' value when it returned success in a case of chroot
detection. This caused initgroups() to use garage pointer in the
following test (extracted from unbound):

```

int main() {
    // load some NSS modules
    struct passwd * pw = getpwnam("root");

    chdir("/tmp");
    chroot("/tmp");
    chdir("/");
    // access nsswitch.conf in a chroot
    initgroups("root", 0);
}
```

Reviewed-by: DJ Delorie <dj@redhat.com>
2021-02-05 13:07:10 -05:00
..
2002-09-29 18:25:48 +00:00
2017-07-17 15:52:44 -04:00
2020-07-21 07:33:50 +02:00