summaryrefslogtreecommitdiff
path: root/gio/glocalfileoutputstream.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-05-09 00:01:59 +0100
committerColin Walters <walters@verbum.org>2013-06-05 18:56:53 +0100
commit02aaef5a4dd92fe3a3f3a7c4ccebf22ca1ba2644 (patch)
tree2e6d26e231c41b0edd737e6052a27bc7f13b00c9 /gio/glocalfileoutputstream.h
parentb4df86fa193d54c7604bf90aa88824e220b92683 (diff)
downloadglib-02aaef5a4dd92fe3a3f3a7c4ccebf22ca1ba2644.tar.gz
glib-02aaef5a4dd92fe3a3f3a7c4ccebf22ca1ba2644.tar.bz2
glib-02aaef5a4dd92fe3a3f3a7c4ccebf22ca1ba2644.zip
g_file_copy(): Clean up logic for info query
Previously, we called g_file_query_info() *again* on the source at the very end of the copy. This has the lame semantics that if the source happened to be deleted, we would fail to apply attributes to the destination. This could even be a security flaw. This commit changes things so that we query info from the source *stream* after opening - i.e. on Unix we use the proper fstat() and friends. That way we operate more atomically. https://bugzilla.gnome.org/show_bug.cgi?id=699959
Diffstat (limited to 'gio/glocalfileoutputstream.h')
0 files changed, 0 insertions, 0 deletions