From d10eccbd7717441538859e0a0c68ecc61289bb69 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 17 Aug 2023 13:00:27 +0200 Subject: [PATCH] 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. --- src/partition/repart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partition/repart.c b/src/partition/repart.c index 06494dd5b9d..198e698c794 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -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; -- 2.47.3