diff --git a/glibc.spec b/glibc.spec index bea2751..719acad 100644 --- a/glibc.spec +++ b/glibc.spec @@ -66,7 +66,7 @@ ############################################################################## Name: glibc Version: 2.34 -Release: 79 +Release: 80 Summary: The GNU libc libraries License: %{all_license} URL: http://www.gnu.org/software/glibc/ @@ -219,6 +219,7 @@ Patch131: nptl-Fix-pthread_cancel-cancelhandling-atomic-operat.patch Patch132: elf-Fix-initial-exec-TLS-access-on-audit-modules-BZ-.patch Patch133: posix-glob.c-update-from-gnulib.patch Patch134: linux-Fix-fchmodat-with-AT_SYMLINK_NOFOLLOW-for-64-b.patch +Patch135: linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch Patch9000: turn-default-value-of-x86_rep_stosb_threshold_form_2K_to_1M.patch Patch9001: delete-no-hard-link-to-avoid-all_language-package-to.patch @@ -1387,6 +1388,9 @@ fi %endif %changelog +* Sat May 7 2022 Qingqing Li - 2.34-80 +- linux: Fix posix_spawn return code if clone fails (BZ#29109) + * Thu May 05 2022 jiangheng - 2.34-79 - restore nscd diff --git a/linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch b/linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch new file mode 100644 index 0000000..d3bb233 --- /dev/null +++ b/linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch @@ -0,0 +1,28 @@ +From 71e2a681f18f617ab962bf8a139bd86d4d440e22 Mon Sep 17 00:00:00 2001 +From: Adhemerval Zanella +Date: Mon, 2 May 2022 12:39:43 -0300 +Subject: [PATCH] linux: Fix posix_spawn return code if clone fails (BZ#29109) + +The __clone_internal returns the error on errno. + +Checked on x86_64-linux-gnu. +--- + sysdeps/unix/sysv/linux/spawni.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c +index d703485..d6f5ca8 100644 +--- a/sysdeps/unix/sysv/linux/spawni.c ++++ b/sysdeps/unix/sysv/linux/spawni.c +@@ -409,7 +409,7 @@ __spawnix (pid_t * pid, const char *file, + __waitpid (new_pid, NULL, 0); + } + else +- ec = -new_pid; ++ ec = errno; + + __munmap (stack, stack_size); + +-- +1.8.3.1 +