mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
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
This commit is contained in:
parent
392a46e16c
commit
244965fd36
|
@ -1,3 +1,10 @@
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue