Fix prog streams.
* libmailutils/prog_stream.c (REDIRECT_STDIN_P) (REDIRECT_STDOUT_P): Fix macros. * libmailutils/stream.c (mu_stream_open): If stream is open with MU_STREAM_APPEND, reposition to its end. (_stream_write_unbuffered): Do not signal EACCESS for MU_STREAM_APPEND streams. * mail/pipe.c (mail_pipe): Rewrite using streams instead of FILEs. * mail/send.c (fill_body): Likewise. * mail/write.c (mail_write): Likewise.
Showing
5 changed files
with
78 additions
and
65 deletions
-
Please register or sign in to post a comment