Commit 4b985f8e authored by Sven Neumann's avatar Sven Neumann
Browse files

Sven Neumann <sven@gimp.org>

	* app/config/gimpconfig.c (gimp_config_serialize): check the return
	value of close().
parent 0c68d320
2002-12-20 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig.c (gimp_config_serialize): check the return
value of close().
2002-12-20 Nathan Summers <rock@gimp.org>
 
* app/xcf/xcf-write.[ch]
......
......@@ -237,6 +237,10 @@ gimp_config_serialize (GObject *object,
write (fd, footer, strlen (footer)) != -1 &&
write (fd, "\n", 1) != -1);
if (close (fd) != 0)
success = FALSE;
if (! success)
{
gchar *msg;
......@@ -259,8 +263,6 @@ gimp_config_serialize (GObject *object,
unlink (tmpname);
}
close (fd);
#ifdef G_OS_WIN32
/* win32 rename can't overwrite */
if (success)
......
......@@ -237,6 +237,10 @@ gimp_config_serialize (GObject *object,
write (fd, footer, strlen (footer)) != -1 &&
write (fd, "\n", 1) != -1);
if (close (fd) != 0)
success = FALSE;
if (! success)
{
gchar *msg;
......@@ -259,8 +263,6 @@ gimp_config_serialize (GObject *object,
unlink (tmpname);
}
close (fd);
#ifdef G_OS_WIN32
/* win32 rename can't overwrite */
if (success)
......
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