aboutsummaryrefslogtreecommitdiffstats
path: root/storage_xml.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-24 18:02:07 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-24 18:02:07 +0100
commitae3dc9996f5a678d6364005cab1517b6324eb67a (patch)
treed62ac84957cafa2f956ab82e0ff20505c64f2250 /storage_xml.c
parentb5b40ffd38e315223c6e38e4a291cbd58e471062 (diff)
parentf1b7711f566163ff27a8f13ae3ccc7214a24fe70 (diff)
Merging stuff from mainline (1.2.6).
Diffstat (limited to 'storage_xml.c')
-rw-r--r--storage_xml.c1
1 files changed, 1 insertions, 0 deletions
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, "</user>\n" ) )
goto write_error;
+ fsync( fd );
close( fd );
path2 = g_strndup( path, strlen( path ) - 1 );