Ticket #559: storage_xml_O_SYNC.diff
File storage_xml_O_SYNC.diff, 453 bytes (added by , at 2010-01-30T13:26:05Z) |
---|
-
storage_xml.c
=== modified file 'storage_xml.c'
404 404 return STORAGE_ALREADY_EXISTS; 405 405 406 406 strcat( path, "~" ); 407 if( ( fd = open( path, O_WRONLY | O_CREAT | O_TRUNC , 0600 ) ) < 0 )407 if( ( fd = open( path, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 0600 ) ) < 0 ) 408 408 { 409 409 irc_usermsg( irc, "Error while opening configuration file." ); 410 410 return STORAGE_OTHER_ERROR;