Commit 244965fd authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Drop Windows code to remove target file before renaming. g_rename()

2009-03-17  Tor Lillqvist  <tml@iki.fi>

	* libgimpconfig/gimpconfigwriter.c
	(gimp_config_writer_close_file): Drop Windows code to remove
	target file before renaming. g_rename() nowadays takes care of
	allowing replacing existing files on Windows.


svn path=/trunk/; revision=28171
parent 392a46e1
2009-03-17 Tor Lillqvist <tml@iki.fi>
* libgimpconfig/gimpconfigwriter.c
(gimp_config_writer_close_file): Drop Windows code to remove
target file before renaming. g_rename() nowadays takes care of
allowing replacing existing files on Windows.
2009-03-16 Sven Neumann <sven@gimp.org>
* configure.in: bumped GLib version for deprecated symbols.
......
......@@ -700,11 +700,6 @@ gimp_config_writer_close_file (GimpConfigWriter *writer,
if (writer->tmpname)
{
#ifdef G_OS_WIN32
/* win32 rename can't overwrite */
g_unlink (writer->filename);
#endif
if (g_rename (writer->tmpname, writer->filename) == -1)
{
g_set_error (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_WRITE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment