Change OstreeFetcher to be dirfd-relative

This is a noticeable cleanup, and fixes another big user of GFile* in
performance/security sensitive codepaths.

I'm specifically making this change because the static deltas code was
leaking temporary files, and cleaning that up nicely would be best if
we were fd relative.
This commit is contained in:
Colin Walters committed 2015-01-14 22:12:08 -05:00
1 parent a7300a828d
commit 9020fe2547
7 files changed
+165 -97

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ gboolean ot_util_variant_map (GFile *src,
GVariant **out_variant,
GError **error);
gboolean ot_util_variant_map_fd (GFileDescriptorBased *stream,
gboolean ot_util_variant_map_fd (int fd,
goffset offset,
const GVariantType *type,
gboolean trusted,