teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0687-tmpfiles-e-takes-globs.patch

923a60
From 1119f95f55ee9c78d140f4d8808f85a3026380d3 Mon Sep 17 00:00:00 2001
923a60
From: Jan Synacek <jsynacek@redhat.com>
923a60
Date: Tue, 11 Dec 2018 10:35:56 +0100
923a60
Subject: [PATCH] tmpfiles: "e" takes globs
923a60
923a60
Fixes #7369.
923a60
923a60
(cherry picked from commit 65241c1485dbad934e22544cd9d8724f4d7ff91d)
923a60
923a60
Resolves: #1641764
923a60
---
923a60
 src/tmpfiles/tmpfiles.c | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
923a60
index 8a75efb229..f7fa2e40fa 100644
923a60
--- a/src/tmpfiles/tmpfiles.c
923a60
+++ b/src/tmpfiles/tmpfiles.c
923a60
@@ -1550,12 +1550,12 @@ static int clean_item(Item *i) {
923a60
         switch (i->type) {
923a60
         case CREATE_DIRECTORY:
923a60
         case CREATE_SUBVOLUME:
923a60
-        case EMPTY_DIRECTORY:
923a60
         case TRUNCATE_DIRECTORY:
923a60
         case IGNORE_PATH:
923a60
         case COPY_FILES:
923a60
                 clean_item_instance(i, i->path);
923a60
                 return 0;
923a60
+        case EMPTY_DIRECTORY:
923a60
         case IGNORE_DIRECTORY_PATH:
923a60
                 return glob_item(i, clean_item_instance, false);
923a60
         default: