Merge pull request #2834 from evan-a-a/fix_glib

core: Ensure glib standard::size attribute is always set
This commit is contained in:
Colin Walters 2023-03-16 07:56:56 -04:00 committed by GitHub
commit 12fac1ed99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1739,6 +1739,8 @@ _ostree_stbuf_to_gfileinfo (const struct stat *stbuf)
if (S_ISREG (mode)) if (S_ISREG (mode))
g_file_info_set_attribute_uint64 (ret, "standard::size", stbuf->st_size); g_file_info_set_attribute_uint64 (ret, "standard::size", stbuf->st_size);
else
g_file_info_set_attribute_uint64 (ret, "standard::size", 0);
return ret; return ret;
} }