[ostree] libostree: Ensure we set standard::type when querying files
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] libostree: Ensure we set standard::type when querying files
- Date: Sun, 19 Jan 2014 23:24:42 +0000 (UTC)
commit f841313206626671300b5a2436a19cd5b92715bf
Author: Colin Walters <walters verbum org>
Date: Sun Jan 19 13:18:04 2014 -0500
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-repo-file.c b/src/libostree/ostree-repo-file.c
index 51b12d5..4985709 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]