summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-04 14:58:40 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-04 14:58:40 +0100
commit9cb3204f432763b2ed501211d3c0026fd95d4217 (patch)
tree1ad78088b5206202695e317cfc10c180415a31bc /src
parenttmpfiles: always list tmpfiles line types in same order (diff)
downloadsystemd-9cb3204f432763b2ed501211d3c0026fd95d4217.tar.xz
systemd-9cb3204f432763b2ed501211d3c0026fd95d4217.zip
tmpfiles: 'x' takes globs, hence clean it with globbing
Diffstat (limited to 'src')
-rw-r--r--src/tmpfiles/tmpfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index e762c71b61..68dac4752e 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -3005,16 +3005,16 @@ static int clean_item(Context *c, Item *i) {
switch (i->type) {
case CREATE_DIRECTORY:
+ case TRUNCATE_DIRECTORY:
case CREATE_SUBVOLUME:
case CREATE_SUBVOLUME_INHERIT_QUOTA:
case CREATE_SUBVOLUME_NEW_QUOTA:
- case TRUNCATE_DIRECTORY:
- case IGNORE_PATH:
case COPY_FILES:
clean_item_instance(c, i, i->path, CREATION_EXISTING);
return 0;
case EMPTY_DIRECTORY:
+ case IGNORE_PATH:
case IGNORE_DIRECTORY_PATH:
return glob_item(c, i, clean_item_instance);