From 542e44ac43d901c9ad70b7f89dde47eff4d9d8db Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 14 Apr 2010 00:35:55 +0200 Subject: fsync() the user configuration file before closing it. (Bug #559) --- storage_xml.c | 1 + 1 file changed, 1 insertion(+) (limited to 'storage_xml.c') diff --git a/storage_xml.c b/storage_xml.c index b6745c75..8c524ca9 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -495,6 +495,7 @@ static storage_status_t xml_save( irc_t *irc, int overwrite ) if( !xml_printf( fd, 0, "\n" ) ) goto write_error; + fsync( fd ); close( fd ); path2 = g_strndup( path, strlen( path ) - 1 ); -- cgit v1.2.3