]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Make sure we keep trailing slashes in ExcludeFiles= 28869/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 17 Aug 2023 11:00:27 +0000 (13:00 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 17 Aug 2023 11:23:39 +0000 (13:23 +0200)
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

index 06494dd5b9dbcc377b5d86191cef00a669825e6a..198e698c794efdd59fcb894a176c0cb500562d8c 100644 (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;