]> git.ipfire.org Git - thirdparty/systemd.git/commit
curl-util: fix downloads from file:// URLs
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Feb 2024 17:22:40 +0000 (18:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 21:25:42 +0000 (22:25 +0100)
commit8bd4d506a49b70204400db53bfcec8d0abecc31b
tree85bd44d7b64cb3073a0692ff927463893c068ad5
parent7253eaa0fb4520a6c05f93ea8e146b3f90b57c4a
curl-util: fix downloads from file:// URLs

if we try to open file:// URLs that don't exist, we'll not get IO/timer
events about it, hence it is not sufficient to check for completion in
these events. Let's add a defer event, to deal with that.

Also, curl_multi_info_read() is a queue, make sure to handle all events
that might be queued.
src/import/curl-util.c
src/import/curl-util.h