repo: Ensure we set the size for regfile inline

Need to clean up the internal APIs for this.
This commit is contained in:
Colin Walters 2021-04-09 22:29:55 +00:00
parent 2cc11b7808
commit 9b4bffc454
1 changed files with 1 additions and 0 deletions

View File

@ -2806,6 +2806,7 @@ ostree_repo_write_regfile_inline (OstreeRepo *self,
{
g_autoptr(GInputStream) memin = g_memory_input_stream_new_from_data (buf, len, NULL);
g_autoptr(GFileInfo) finfo = _ostree_mode_uidgid_to_gfileinfo (mode, uid, gid);
g_file_info_set_size (finfo, len);
g_autofree guint8* csum = NULL;
if (!write_content_object (self, expected_checksum,
memin, finfo, xattrs, &csum,