glib/gio
Tor Lillqvist 02d9af3562 Bug 548988 - g_file_replace fails on Windows when the target file exists
2008-08-23  Tor Lillqvist  <tml@novell.com>

	Bug 548988 - g_file_replace fails on Windows when the target file
	exists already

	* glocalfileoutputstream.c (g_local_file_output_stream_close): On
	Windows, close the file before renaming it (in case we have been
	writing to a file with a temporary name).

	(g_local_file_output_stream_close, handle_overwrite_open): Use
	GLocalFileStat instead of plain struct stat, for passing to
	_g_local_file_info_create_etag(). Thus also use _fstati64()
	instead of plain fstat() on Windows.


svn path=/trunk/; revision=7388
2008-08-23 01:09:08 +00:00
..
fam Bug 544140 - fam-helper 64-bit issue? 2008-07-22 14:56:31 +00:00
fen Remove a warning 2008-07-18 18:22:48 +00:00
inotify Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
tests Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
win32 win32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c 2008-08-13 19:39:49 +00:00
xdgmime Bug 546079 – leak in xdgmime 2008-08-03 18:49:12 +00:00
abicheck.sh Fix copy-and-paste leftovers 2007-11-28 18:45:08 +00:00
ChangeLog Bug 548988 - g_file_replace fails on Windows when the target file exists 2008-08-23 01:09:08 +00:00
gappinfo.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gappinfo.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +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 Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gasyncresult.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gasyncresult.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gbufferedinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gbufferedinputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gbufferedoutputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gbufferedoutputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gcancellable.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gcancellable.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gcontenttype.c Remove debug spew 2008-07-19 01:15:12 +00:00
gcontenttype.h Add g_content_type_guess_for_tree 2008-07-18 15:33:22 +00:00
gcontenttypeprivate.h gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00
gdatainputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gdatainputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +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 Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gdesktopappinfo.c Remove debug spew 2008-08-01 21:18:02 +00:00
gdesktopappinfo.h Avoid a filename conflict 2008-07-16 06:30:12 +00:00
gdrive.c More doc fixes 2008-07-21 02:32:14 +00:00
gdrive.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gdummyfile.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gdummyfile.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gemblem.c Forgotten commit 2008-08-04 17:19:30 +00:00
gemblem.h Forgotten commit 2008-08-04 17:19:30 +00:00
gemblemedicon.c Forgotten commit 2008-08-04 17:19:30 +00:00
gemblemedicon.h Forgotten commit 2008-08-04 17:19:30 +00:00
gfile.c Bug 547080 – g_file_copy leaks expected errors 2008-08-10 10:55:57 +00:00
gfile.h Add g_file_monitor 2008-07-02 17:19:16 +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 Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gfileattribute.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileenumerator.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileenumerator.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileicon.c New functions. (g_file_icon_class_init): Hook them up. Install 2008-08-07 19:44:53 +00:00
gfileicon.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileinfo.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileinfo.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileinputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfilemonitor.c Bug 546371 – Improve docs re g_file_monitor 2008-08-05 17:51:13 +00:00
gfilemonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfilenamecompleter.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gfilenamecompleter.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileoutputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfileoutputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfilterinputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gfilterinputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gfilteroutputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gfilteroutputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gicon.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gicon.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
ginputstream.c Add docs 2008-08-13 05:35:10 +00:00
ginputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +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 Forgotten commit 2008-08-04 17:19:30 +00:00
gio.symbols Forgotten commit 2008-08-04 17:19:30 +00:00
gioenums.h Forgotten commit 2008-08-04 17:19:30 +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 Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gioerror.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +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 Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gioscheduler.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gioscheduler.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
giotypes.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gloadableicon.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gloadableicon.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocaldirectorymonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
glocaldirectorymonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfile.c Bug 535124 – umask 002 not being applied for new directories, new files 2008-08-08 09:26:51 +00:00
glocalfile.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileenumerator.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileenumerator.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileinfo.c Support setting selinux attributes 2008-07-23 04:11:02 +00:00
glocalfileinfo.h Introduce a macro GLocalFileStat that is the normal struct stat on Unix 2008-03-12 18:33:59 +00:00
glocalfileinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileinputstream.h s/parent/parent_instance/ in GObjects 2007-12-12 14:33:20 +00:00
glocalfilemonitor.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfilemonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalfileoutputstream.c Bug 548988 - g_file_replace fails on Windows when the target file exists 2008-08-23 01:09:08 +00:00
glocalfileoutputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalvfs.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
glocalvfs.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryinputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryinputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryoutputstream.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmemoryoutputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gmount.c Also export a g_mount_guess_content_type_sync() function. 2008-07-24 21:21:22 +00:00
gmount.h Also export a g_mount_guess_content_type_sync() function. 2008-07-24 21:21:22 +00:00
gmountoperation.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gmountoperation.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +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 Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
goutputstream.c Add docs 2008-08-13 05:35:10 +00:00
goutputstream.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gpollfilemonitor.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gpollfilemonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gseekable.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gseekable.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gsimpleasyncresult.c Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gsimpleasyncresult.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gthemedicon.c Also handle `PROP_USE_DEFAULT_FALLBACKS'. (g_themed_icon_class_init): Make 2008-08-06 19:43:31 +00:00
gthemedicon.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gunionvolumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gunionvolumemonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gunixinputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gunixinputstream.h Only allow including <gio/gio.h> from apps 2007-12-14 10:35:24 +00:00
gunixmount.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gunixmount.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gunixmounts.c Add zfs to ignore_fs array in guess_system_internal: Fix for #542156. 2008-08-15 08:27:55 +00:00
gunixmounts.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gunixoutputstream.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gunixoutputstream.h Only allow including <gio/gio.h> from apps 2007-12-14 10:35:24 +00:00
gunixvolume.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gunixvolume.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gunixvolumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gunixvolumemonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gvfs.c Doc fixes 2008-07-21 02:19:56 +00:00
gvfs.h Avoid a filename conflict 2008-07-16 06:30:12 +00:00
gvolume.c 543504 – crash in Epiphany Web Browser: Opening local file 2008-07-20 00:34:58 +00:00
gvolume.h Add new method g_volume_get_activation_root(). This is needed for easily 2008-07-07 15:38:38 +00:00
gvolumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gvolumemonitor.h More doc fixes 2008-07-21 02:46:54 +00:00
gwin32appinfo.c Correct return type. 2008-07-28 00:26:09 +00:00
gwin32appinfo.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gwin32mount.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gwin32mount.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
gwin32volumemonitor.c gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c 2008-08-11 19:45:08 +00:00
gwin32volumemonitor.h Moved all relevant typedefs into these files. 2008-07-01 06:32:35 +00:00
Makefile.am Put a list of the platform-dependent .la files in the subdirectories in 2008-08-11 12:35:09 +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 Allow g_atomic_pointer_get 2008-06-30 04:55:27 +00:00