delta: ensure that d_type will be set on every fs

This commit is contained in:
Lukas Nykryn
2014-01-09 16:43:00 +01:00
parent 58742b06bd
commit 277f2f75f6
+2
View File
@@ -316,6 +316,8 @@ static int enumerate_dir(Hashmap *top, Hashmap *bottom, Hashmap *drops, const ch
if (!de)
return -errno;
dirent_ensure_type(d, de);
if (dropins && de->d_type == DT_DIR && endswith(de->d_name, ".d"))
enumerate_dir_d(top, bottom, drops, path, de->d_name);