glibc: Fix segfault in getpwuid when stat fails (#167932)

Fixes #167785 using this patch submitted upstream:

https://sourceware.org/bugzilla/show_bug.cgi?id=28752
https://patchwork.sourceware.org/project/glibc/patch/20220314175316.3239120-2-sam@gentoo.org/

(cherry picked from commit a20e363e6b)
This commit is contained in:
Anders Kaseorg 2022-04-09 22:11:57 -07:00 committed by Vladimír Čunát
parent 07eeff9055
commit 974314755e
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -127,6 +127,13 @@ stdenv.mkDerivation ({
./nix-nss-open-files.patch
./0001-Revert-Remove-all-usage-of-BASH-or-BASH-in-installed.patch
/* Fix segfault in getpwuid when stat fails
https://sourceware.org/bugzilla/show_bug.cgi?id=28752 */
(fetchurl {
url = "https://patchwork.sourceware.org/project/glibc/patch/20220314175316.3239120-2-sam@gentoo.org/raw/";
sha256 = "sq0BoPqXHQ69Vq4zJobCspe4XRfnAiuac/wqzVQJESc=";
})
]
++ lib.optional stdenv.hostPlatform.isMusl ./fix-rpc-types-musl-conflicts.patch
++ lib.optional stdenv.buildPlatform.isDarwin ./darwin-cross-build.patch;