217
217
sieve_error_handler_unref(&ehandler);
225
225
struct ostream *dumpstream;
227
227
if ( filename == NULL ) return;
230
230
dumpstream = o_stream_create_fd(1, 0, FALSE);
232
232
if ( (dfd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0600)) < 0 ) {
233
233
i_fatal("failed to open dump-file for writing: %m");
236
236
dumpstream = o_stream_create_fd(dfd, 0, FALSE);
239
239
if ( dumpstream != NULL ) {
240
240
(void) sieve_dump(sbin, dumpstream);
241
241
o_stream_destroy(&dumpstream);
243
243
i_fatal("Failed to create stream for sieve code dump.");