mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 16:38:43 +02:00
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
This commit is contained in:
committed by
Alexander Larsson
parent
3fd881b5bb
commit
0fd66d7e22
@@ -1,3 +1,20 @@
|
||||
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.
|
||||
|
||||
2009-02-17 Ryan Lortie <desrt@desrt.ca>
|
||||
|
||||
* gfileinfo.c: unref the destination's attribute matcher before
|
||||
|
Reference in New Issue
Block a user