Browse Source

unbelieveable, but close() can actually fail

wip/maildir-uid-dupes-test
Oswald Buddenhagen 19 years ago
parent
commit
630a04ad3e
  1. 13
      src/sync.c

13
src/sync.c

@ -35,6 +35,15 @@
static const char *str_ms[] = { "master", "slave" }, *str_hl[] = { "push", "pull" };
void
Fclose( FILE *f )
{
if (fclose( f ) == EOF) {
perror( "cannot close file" );
exit( 1 );
}
}
void
Fprintf( FILE *f, const char *msg, ... )
{
@ -1168,8 +1177,8 @@ sync_boxes( store_t *ctx[], const char *names[], channel_conf_t *chan )
srec->status & S_EXPIRED ? "X" : "", fbuf );
}
fclose( nfp );
fclose( jfp );
Fclose( nfp );
Fclose( jfp );
if (!(DFlags & KEEPJOURNAL)) {
/* order is important! */
rename( nname, dname );

Loading…
Cancel
Save