diff options
author | Colin Walters <walters@verbum.org> | 2012-03-07 10:25:26 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-03-08 12:10:58 -0500 |
commit | db93c4325560c4d8ceeebaa727b9ac5a36096360 (patch) | |
tree | 61e2929566b5bf4dca957c8cbce58625dca7b371 /src/libostree/ostree-repo-file.c | |
parent | eb4302517f6b62eca1a898aa0fb3e3a76ba46d59 (diff) | |
download | ostree-db93c4325560c4d8ceeebaa727b9ac5a36096360.tar.gz |
core: Fix "cat" crashing when it should have returned ENOENT
Diffstat (limited to 'src/libostree/ostree-repo-file.c')
-rw-r--r-- | 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 24ec2301..9cc7b823 100644 --- a/src/libostree/ostree-repo-file.c +++ b/src/libostree/ostree-repo-file.c @@ -992,6 +992,9 @@ ostree_repo_file_read (GFile *file, OstreeRepoFile *self = OSTREE_REPO_FILE (file); const char *checksum; + if (!ostree_repo_file_ensure_resolved (self, error)) + goto out; + if (self->tree_contents) { g_set_error_literal (error, G_IO_ERROR, |