glib/gio
Alexander Larsson 0fd66d7e22 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
2009-02-18 14:49:25 +00:00
..
fam Bug 556910 – [fam-helper.c:223]: Memory leak: sub 2008-10-24 04:04:42 +00:00
fen Remove a warning 2008-07-18 18:22:48 +00:00
inotify Bug 561807 – inotify_sub.c :: dup_dirname() fails to remove trailing '/' 2008-11-28 05:09:21 +00:00
tests Bug 568575 – _async functions for GDataInputStream 2009-01-28 16:39:39 +00:00
win32 Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init() 2008-11-12 17:52:39 +00:00
xdgmime Don't assume filenames are UTF-8. 2009-01-09 05:19:17 +00:00
.gitignore Bug 549771 – improved .gitignore for glib 2008-09-02 18:40:39 +00:00
abicheck.sh Fix copy-and-paste leftovers 2007-11-28 18:45:08 +00:00
ChangeLog Bug 560564 – Replacing a symlink with its linked file truncates the 2009-02-18 14:49:25 +00:00
gappinfo.c Add g_app_info_get_commandline. Requested by Hans Petter Jansson. 2008-11-28 23:16:45 +00:00
gappinfo.h Doc addition 2009-01-19 07:05:07 +00:00
gasynchelper.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gasynchelper.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gasyncresult.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gasyncresult.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gbufferedinputstream.c Bug 568723 – g_buffered_input_stream_fill_async doesn't take count == -1 2009-01-22 19:18:26 +00:00
gbufferedinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gbufferedoutputstream.c Bug 568394 – dropping the last reference to a stream filter closes the 2009-01-21 14:09:56 +00:00
gbufferedoutputstream.h fix parent_class member to be GFilterOutputStreamClass (not 2008-09-02 17:30:02 +00:00
gcancellable.c Bug 505361 - gunixinputstream.c assumes poll() available 2008-09-26 16:19:35 +00:00
gcancellable.h Bug 505361 - gunixinputstream.c assumes poll() available 2008-09-26 16:19:35 +00:00
gcontenttype.c Bug 561352 – Leak of icon description 2008-11-20 23:58:39 +00:00
gcontenttype.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gcontenttypeprivate.h gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00
gdatainputstream.c Add missing exports 2009-02-17 06:32:44 +00:00
gdatainputstream.h Bug 568575 – _async functions for GDataInputStream 2009-01-28 16:39:39 +00:00
gdataoutputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gdataoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gdesktopappinfo.c Expand docs 2009-01-19 22:58:38 +00:00
gdesktopappinfo.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gdrive.c More doc fixes 2008-07-21 02:32:14 +00:00
gdrive.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gdummyfile.c Bug 566747 - URIs opened with firefox %u load as local files 2009-02-04 08:01:42 +00:00
gdummyfile.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gemblem.c cast a "char **" to "const char **" to avoid a warning. 2009-01-05 16:57:55 +00:00
gemblem.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gemblemedicon.c cast a "char **" to "const char **" to avoid a warning. 2009-01-05 16:57:55 +00:00
gemblemedicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfile.c Bug 560564 – Replacing a symlink with its linked file truncates the 2009-02-18 14:49:25 +00:00
gfile.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileattribute-priv.h Move GFileAttributeValue to a private header, as its sort of ugly. 2007-12-14 15:56:56 +00:00
gfileattribute.c Bug 505042 – add file attribute for actually used file size in bytes 2009-02-16 14:22:43 +00:00
gfileattribute.h Bug 554745 - GFileAttributeInfoList should be boxed 2008-10-06 21:59:29 +00:00
gfileenumerator.c Bug 556422 – g_file_enumerator_next_file: unclear whether return value 2008-10-16 04:19:53 +00:00
gfileenumerator.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileicon.c Bug 555740 - gicon serialization Based on patch from David Zeuthen 2008-10-21 11:51:48 +00:00
gfileicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileinfo.c unref the destination's attribute matcher before overwriting it. 2009-02-17 23:36:13 +00:00
gfileinfo.h Bug 505042 – add file attribute for actually used file size in bytes 2009-02-16 14:22:43 +00:00
gfileinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfilemonitor.c Bug 546371 – Improve docs re g_file_monitor 2008-08-05 17:51:13 +00:00
gfilemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfilenamecompleter.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gfilenamecompleter.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfileoutputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gfilterinputstream.c Correct the grammar in some property documentation. 2009-02-06 14:08:19 +00:00
gfilterinputstream.h Bug 568394 – dropping the last reference to a stream filter closes the 2009-01-21 14:09:56 +00:00
gfilteroutputstream.c Correct the grammar in some property documentation. 2009-02-06 14:08:19 +00:00
gfilteroutputstream.h Bug 568394 – dropping the last reference to a stream filter closes the 2009-01-21 14:09:56 +00:00
gicon.c free the tokens when done with them 2008-12-12 20:59:54 +00:00
gicon.h Bug 555740 - gicon serialization Based on patch from David Zeuthen 2008-10-21 11:51:48 +00:00
ginputstream.c Add docs 2008-08-13 05:35:10 +00:00
ginputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gio-marshal.list Change the API a bit so that unhandled methods get reported via the reply, 2008-01-09 14:43:41 +00:00
gio.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gio.symbols Add missing exports 2009-02-17 06:32:44 +00:00
gioenums.h Bug 560564 – Replacing a symlink with its linked file truncates the 2009-02-18 14:49:25 +00:00
gioenumtypes.c.template Fix typo. 2007-12-01 23:49:34 +00:00
gioenumtypes.h.template introduce an ENUMPREFIX substitution. 2008-06-23 12:06:39 +00:00
gioerror.c Cope with EEXIST == ENOTEMPTY. Reported by Nicolas Joseph 2009-02-12 01:52:17 +00:00
gioerror.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
giomodule-priv.h 2.15.4 2008-01-29 00:00:31 +00:00
giomodule.c win32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c 2008-08-12 23:09:04 +00:00
giomodule.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gioscheduler.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gioscheduler.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
giotypes.h Bug 561212 – GFileReadMoreCallback API doc refers to non-existant function 2008-11-21 10:30:43 +00:00
gloadableicon.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gloadableicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocaldirectorymonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
glocaldirectorymonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfile.c Bug 515777 - incorrect date&time on copy 2008-12-09 11:15:36 +00:00
glocalfile.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileenumerator.c Add a G_IO_ERROR_TOO_MANY_OPEN_FILES error code. Requested by Olivier 2009-01-08 01:32:15 +00:00
glocalfileenumerator.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileinfo.c Bug 505042 – add file attribute for actually used file size in bytes 2009-02-16 14:22:43 +00:00
glocalfileinfo.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfilemonitor.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfilemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalfileoutputstream.c Bug 560564 – Replacing a symlink with its linked file truncates the 2009-02-18 14:49:25 +00:00
glocalfileoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
glocalvfs.c Better fix 2008-11-28 07:04:43 +00:00
glocalvfs.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gmemoryinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryinputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gmemoryoutputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryoutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gmount.c Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gmount.h Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gmountoperation.c Add an "aborted" signal to abort a mount operation from the backend side. 2009-02-17 00:02:06 +00:00
gmountoperation.h Add an "aborted" signal to abort a mount operation from the backend side. 2009-02-17 00:02:06 +00:00
gmountprivate.h Add is_supported() to GNativeVolumeMonitorClass so that we can avoid 2007-12-17 16:00:33 +00:00
gnativevolumemonitor.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gnativevolumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
goutputstream.c Add docs 2008-08-13 05:35:10 +00:00
goutputstream.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gpollfilemonitor.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gpollfilemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gseekable.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gseekable.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gsimpleasyncresult.c Bug 571598 – GAsyncResult with NULL gobject 2009-02-16 09:33:39 +00:00
gsimpleasyncresult.h Add g_simple_async_result_is_valid(). Implementation by Dan Winship. 2009-01-05 06:57:16 +00:00
gthemedicon.c Bug 555740 - gicon serialization Based on patch from David Zeuthen 2008-10-21 11:51:48 +00:00
gthemedicon.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunionvolumemonitor.c Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gunionvolumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixinputstream.c Add notes about being UNIX-specific 2008-12-31 07:47:19 +00:00
gunixinputstream.h Add "fd" and "close-fd" properties including getters and setters. Patch by 2008-12-08 05:41:43 +00:00
gunixmount.c (gio) 2008-09-08 12:44:07 +00:00
gunixmount.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixmounts.c Some cleanups 2009-01-19 06:09:11 +00:00
gunixmounts.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixoutputstream.c Add notes about being UNIX-specific 2008-12-31 07:47:19 +00:00
gunixoutputstream.h Add "fd" and "close-fd" properties including getters and setters. Patch by 2008-12-08 05:41:43 +00:00
gunixvolume.c (gio) 2008-09-08 12:44:07 +00:00
gunixvolume.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gunixvolumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gunixvolumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gvfs.c Doc fixes 2008-07-21 02:19:56 +00:00
gvfs.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gvolume.c Add and document g_mount_is_shadowed plus calls to set/unset a mount as 2008-12-01 13:46:11 +00:00
gvolume.h Add an "aborted" signal to abort a mount operation from the backend side. 2009-02-17 00:02:06 +00:00
gvolumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gvolumemonitor.h Deprecate g_volume_monitor_adopt_orphan_mount() (#555331). 2008-10-12 17:05:17 +00:00
gwin32appinfo.c Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for 2008-09-26 19:57:36 +00:00
gwin32appinfo.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gwin32mount.c Don't unref icon if NULL. 2008-09-04 20:41:50 +00:00
gwin32mount.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
gwin32volumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gwin32volumemonitor.h big header formatting cleanup: indentation, vtable formatting, consistent 2008-09-02 19:05:58 +00:00
Makefile.am Bug 555121 – Improved build-time handling of gio module-dir 2008-10-10 05:00:17 +00:00
makefile.msc add gemblembedicon 2008-08-01 14:15:02 +00:00
makegioalias.pl Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from 2008-05-05 15:12:13 +00:00
pltcheck.sh Make these work on x86_64 2008-12-13 23:56:05 +00:00