fetchurl: handle leading '/' in '_process_fetch()'

Fixes #4691
This commit is contained in:
Christian Prochaska 2022-11-22 16:34:34 +01:00 committed by Christian Helmuth
parent ffb48ed030
commit f4b06be24b

View File

@ -216,6 +216,10 @@ struct Fetchurl::Main
if (!end_of_elem)
continue;
/* handle leading '/' */
if (end_of_elem && (sub_path_len == 0))
continue;
Genode::String<256> sub_path(Genode::Cstring(out_path, sub_path_len));
/* skip '/' */