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.
This commit is contained in:
Daan De Meyer
2023-08-17 13:23:39 +02:00
parent ce60b3a40a
commit d10eccbd77
+1 -1
View File
@@ -1477,7 +1477,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;