From f841313206626671300b5a2436a19cd5b92715bf Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 19 Jan 2014 13:18:04 -0500 Subject: [PATCH] libostree: Ensure we set standard::type when querying files This makes the obvious code to recursively enumerate directories operate more sanely. Noticed this while trying to write corrupt-repo-ref.js. --- src/libostree/ostree-repo-file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libostree/ostree-repo-file.c b/src/libostree/ostree-repo-file.c index 51b12d53..49857099 100644 --- a/src/libostree/ostree-repo-file.c +++ b/src/libostree/ostree-repo-file.c @@ -719,6 +719,9 @@ query_child_info_dir (OstreeRepo *repo, ret_info = g_file_info_new (); + g_file_info_set_attribute_uint32 (ret_info, "standard::type", + G_FILE_TYPE_DIRECTORY); + if (g_file_attribute_matcher_matches (matcher, "unix::mode")) { if (!ostree_repo_load_variant (repo, OSTREE_OBJECT_TYPE_DIR_META,