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.
This commit is contained in:
Colin Walters 2014-01-19 13:18:04 -05:00
parent 3ce687ef1b
commit f841313206
1 changed files with 3 additions and 0 deletions

View File

@ -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,