From 244965fd362ef1fb13a942e2aa8272efce326e92 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 17 Mar 2009 11:28:29 +0000 Subject: [PATCH] Drop Windows code to remove target file before renaming. g_rename() 2009-03-17 Tor Lillqvist * 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 --- ChangeLog | 7 +++++++ libgimpconfig/gimpconfigwriter.c | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 614d743754..7857208fa3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-17 Tor Lillqvist + + * 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 * configure.in: bumped GLib version for deprecated symbols. diff --git a/libgimpconfig/gimpconfigwriter.c b/libgimpconfig/gimpconfigwriter.c index bddd8c351c..eb642e65a8 100644 --- a/libgimpconfig/gimpconfigwriter.c +++ b/libgimpconfig/gimpconfigwriter.c @@ -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,