diff options
Diffstat (limited to 'mailutils')
-rw-r--r-- | mailutils/mime.c | 2 | ||||
-rw-r--r-- | mailutils/sendmail.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mailutils/mime.c b/mailutils/mime.c index dd81139..17d0f9d 100644 --- a/mailutils/mime.c +++ b/mailutils/mime.c @@ -293,7 +293,7 @@ static int parse(const char *boundary, char **argv) } // parent dumps to fd[1] close(fd[0]); - fp = fdopen(fd[1], "w"); + fp = xfdopen_for_write(fd[1]); signal(SIGPIPE, SIG_IGN); // ignore EPIPE // or create a file for dump } else { diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c index 2f99df6..4b58a78 100644 --- a/mailutils/sendmail.c +++ b/mailutils/sendmail.c @@ -93,7 +93,7 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv) // save initial stdin since body is piped! xdup2(STDIN_FILENO, 3); - G.fp0 = fdopen(3, "r"); + G.fp0 = xfdopen_for_read(3); // parse options // -f is required. -H and -S are mutually exclusive |