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
@@ -41,9 +41,6 @@ cat_one_file (GFile *f,
|
||||
gboolean ret = FALSE;
|
||||
GInputStream *in = NULL;
|
||||
|
||||
if (!ostree_repo_file_ensure_resolved ((OstreeRepoFile*)f, NULL))
|
||||
g_assert_not_reached ();
|
||||
|
||||
in = (GInputStream*)g_file_read (f, cancellable, error);
|
||||
if (!in)
|
||||
goto out;
|
||||
|
||||
Reference in new issue
Block a user