mirror of
https://github.com/aphrody-labs/MSYS2-packages.git
synced 2026-10-17 12:45:14 +00:00
33 lines
997 B
Diff
33 lines
997 B
Diff
From 21b8d8a21a03e0d44294626f7222adda6b48dfac Mon Sep 17 00:00:00 2001
|
|
From: Christian Hesse <mail@eworm.de>
|
|
Date: Thu, 30 Apr 2026 12:31:13 +0200
|
|
Subject: [PATCH] libalpm: invalidate curl data in child
|
|
|
|
Touching that data inside the child makes it crash. So let's invalidate
|
|
and ignore it there.
|
|
|
|
https://github.com/curl/curl/issues/21466
|
|
---
|
|
lib/libalpm/util.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
|
|
index 6739161b6..8a99ef875 100644
|
|
--- a/lib/libalpm/util.c
|
|
+++ b/lib/libalpm/util.c
|
|
@@ -673,6 +673,11 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char *cmd, char *const argv[],
|
|
close(cwdfd);
|
|
}
|
|
|
|
+#ifdef HAVE_LIBCURL
|
|
+ /* invalidate the curl data - we must not touch it in child */
|
|
+ handle->curlm = NULL;
|
|
+#endif
|
|
+
|
|
/* use fprintf instead of _alpm_log to send output through the parent */
|
|
/* don't chroot() to "/": this allows running with less caps when the
|
|
* caller puts us in the right root */
|
|
--
|
|
GitLab
|
|
|