core: Fix "cat" crashing when it should have returned ENOENT
This commit is contained in:
1 parent
eb4302517f
commit
db93c43255
2 files changed
+3
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user