镜像自地址
https://github.com/JGZYES/ParlzPackageManger.git
已同步 2026-09-11 05:42:44 +08:00
fix: run_capture popen mode 'rb' -> 'r' (glibc popen rejects 'rb' -> EINVAL, breaks Linux mirror HTTP)
这个提交包含在:
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
/* Read all output of `cmd` into a malloc'd buffer. */
|
/* Read all output of `cmd` into a malloc'd buffer. */
|
||||||
static char *run_capture(const char *cmd, size_t *out_len) {
|
static char *run_capture(const char *cmd, size_t *out_len) {
|
||||||
FILE *f = PMM_POPEN(cmd, "rb");
|
FILE *f = PMM_POPEN(cmd, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
if (getenv("PMM_DEBUG"))
|
if (getenv("PMM_DEBUG"))
|
||||||
fprintf(stderr, "[http] popen(cmd) failed: errno=%d %s\n", errno, strerror(errno));
|
fprintf(stderr, "[http] popen(cmd) failed: errno=%d %s\n", errno, strerror(errno));
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户