]> git.ipfire.org Git - thirdparty/systemd.git/commit
import-util: tweak url patching helper
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Feb 2021 21:37:36 +0000 (22:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Jul 2021 14:23:20 +0000 (16:23 +0200)
commit56ce4adafef11fb1fd3e11000a1c405bac17ca56
tree93d28e14b73cb28e685ff0060b8a50ec831ff0fb
parent1f0fb7d544711248cba34615e43c5a76bc902d74
import-util: tweak url patching helper

let's share some code between import_url_last_component() and
import_url_change_last_component(), and make sure we never eat up the
hostname component of the URL when parsing out the last component.

Let's also make import_url_change_last_component() more generic so that
we can also use it for append components to paths, instead of replacing
suffixes.
src/shared/import-util.c
src/shared/import-util.h