write_content_object: Don't assume file info has standard::size
authorSimon McVittie <smcv@collabora.com>
Fri, 17 Mar 2023 12:56:39 +0000 (12:56 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 17 Mar 2023 12:56:39 +0000 (12:56 +0000)
commit1b29ab7d90d9d93eedd7cd3e49c500e1ca3e3f47
tree94a304e9a11691c8c970aa67dbde329f77ef7eb9
parent9e116c0f7983ce251b9ea661f14008603b552e42
write_content_object: Don't assume file info has standard::size

The file info object for symlinks might validly not have this attribute.
If not, behave as though it was 0, matching what happened with older
versions of GLib.

Signed-off-by: Simon McVittie <smcv@collabora.com>
src/libostree/ostree-repo-commit.c