Bug 560564 – Replacing a symlink with its linked file truncates the
authorAlexander Larsson <alexl@redhat.com>
Wed, 18 Feb 2009 14:49:25 +0000 (14:49 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Wed, 18 Feb 2009 14:49:25 +0000 (14:49 +0000)
commit0fd66d7e22f410b7b540c2ab9383a3b2c235387a
treef72b88480dd5c2a1ebf9ffe18713181d96fc98ec
parent3fd881b5bb5e27af98303fd0aaaddb5db65d0085
Bug 560564 – Replacing a symlink with its linked file truncates the

2009-02-18  Alexander Larsson  <alexl@redhat.com>

Bug 560564 – Replacing a symlink with its linked file truncates the original file

        * gioenums.h:
Add G_FILE_CREATE_REPLACE_DESTINATION

        * glocalfileoutputstream.c:
        (handle_overwrite_open):
        (_g_local_file_output_stream_replace):
Handle G_FILE_CREATE_REPLACE_DESTINATION when overwriting files.

        * gfile.c:
        (file_copy_fallback):
Pass G_FILE_CREATE_REPLACE_DESTINATION to g_file_replace when copying
with overwrite.

svn path=/trunk/; revision=7880
gio/ChangeLog
gio/gfile.c
gio/gioenums.h
gio/glocalfileoutputstream.c