i_assert(output != &file->output);
*output = NULL;
- o_stream_ignore_last_errors(file->output);
+ o_stream_abort(file->output);
/* make sure we don't have an old error lying around */
ret = fs_write_stream_finish_int(file, FALSE);
i_assert(ret != 0);
{
if (success)
*error = "test output error";
- o_stream_ignore_last_errors(output);
+ o_stream_abort(output);
o_stream_destroy(&output);
return -1;
}
o_stream_cork(output);
ret = dbox_file_fix_write_stream(file, start_offset, temp_path, output);
if (ret < 0)
- o_stream_ignore_last_errors(output);
+ o_stream_abort(output);
have_messages = output->offset > file->file_header_size;
o_stream_unref(&output);
if (close(fd) < 0) {
dbox_file_set_syscall_error(file, "ftruncate()");
}
if (ctx->output != NULL) {
- o_stream_ignore_last_errors(ctx->output);
+ o_stream_abort(ctx->output);
o_stream_unref(&ctx->output);
}
i_free(ctx);
}
}
} else {
- o_stream_ignore_last_errors(output);
+ o_stream_abort(output);
}
o_stream_destroy(&output);
ret = -1;
}
ctx->build_ctx->need_reopen = TRUE;
+ } else {
+ o_stream_abort(ctx->output);
}
/* we no longer require the entire uidlist to be in memory,
let it be used for something more useful. */
squat_uidlist_free_from_memory(ctx->uidlist);
- o_stream_ignore_last_errors(ctx->output);
o_stream_unref(&ctx->output);
if (close(ctx->fd) < 0)
i_error("close(%s) failed: %m", temp_path);