From: Daan De Meyer Date: Thu, 17 Aug 2023 11:00:27 +0000 (+0200) Subject: repart: Make sure we keep trailing slashes in ExcludeFiles= X-Git-Tag: v255-rc1~699^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F28869%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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;