1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-11 04:58:19 +03:00

repart: Make sure we keep trailing slashes in ExcludeFiles=

We conditionalize behavior based on whether these paths have trailing
slashes or not, so let's make sure we keep them intact.

(cherry picked from commit d10eccbd7717441538859e0a0c68ecc61289bb69)
This commit is contained in:
Daan De Meyer 2023-08-17 13:00:27 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 979b2abbdd
commit 562a7fd8e5

View File

@ -1428,7 +1428,7 @@ static int config_parse_exclude_files(
return 0;
}
r = path_simplify_and_warn(resolved, PATH_CHECK_ABSOLUTE, unit, filename, line, lvalue);
r = path_simplify_and_warn(resolved, PATH_CHECK_ABSOLUTE|PATH_KEEP_TRAILING_SLASH, unit, filename, line, lvalue);
if (r < 0)
return 0;