9fc0f6
From 8d48fb915cbfa1b4ad594b597f2567d682bfc635 Mon Sep 17 00:00:00 2001
9fc0f6
From: Lukas Nykryn <lnykryn@redhat.com>
9fc0f6
Date: Thu, 9 Jan 2014 16:43:00 +0100
9fc0f6
Subject: [PATCH] delta: ensure that d_type will be set on every fs
9fc0f6
9fc0f6
---
9fc0f6
 src/delta/delta.c | 2 ++
9fc0f6
 1 file changed, 2 insertions(+)
9fc0f6
9fc0f6
diff --git a/src/delta/delta.c b/src/delta/delta.c
9fc0f6
index b3272d9..193642d 100644
9fc0f6
--- a/src/delta/delta.c
9fc0f6
+++ b/src/delta/delta.c
9fc0f6
@@ -291,6 +291,8 @@ static int enumerate_dir(Hashmap *top, Hashmap *bottom, Hashmap *drops, const ch
9fc0f6
                 if (!de)
9fc0f6
                         break;
9fc0f6
 
9fc0f6
+                dirent_ensure_type(d, de);
9fc0f6
+
9fc0f6
                 if (dropins && de->d_type == DT_DIR && endswith(de->d_name, ".d"))
9fc0f6
                         enumerate_dir_d(top, bottom, drops, path, de->d_name);
9fc0f6