Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mail PR/54766: elo: Broken mime-hooks handling in ma...



details:   https://anonhg.NetBSD.org/src/rev/937b0f5f52dc
branches:  trunk
changeset: 967573:937b0f5f52dc
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 14 20:21:43 2019 +0000

description:
PR/54766: elo: Broken mime-hooks handling in mail(1)
pullup-9.

diffstat:

 usr.bin/mail/mime_child.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 269da87a6e17 -r 937b0f5f52dc usr.bin/mail/mime_child.c
--- a/usr.bin/mail/mime_child.c Sat Dec 14 19:26:17 2019 +0000
+++ b/usr.bin/mail/mime_child.c Sat Dec 14 20:21:43 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mime_child.c,v 1.9 2017/11/09 20:27:50 christos Exp $  */
+/*     $NetBSD: mime_child.c,v 1.10 2019/12/14 20:21:43 christos Exp $ */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef __lint__
-__RCSID("$NetBSD: mime_child.c,v 1.9 2017/11/09 20:27:50 christos Exp $");
+__RCSID("$NetBSD: mime_child.c,v 1.10 2019/12/14 20:21:43 christos Exp $");
 #endif /* not __lint__ */
 
 #include <assert.h>
@@ -159,7 +159,7 @@
        default:        /* parent */
                (void)close(p[READ]);
 
-               nfo = fdopen(p[WRITE], "wef");
+               nfo = fdopen(p[WRITE], "we");
                if (nfo == NULL) {
                        warn("mime_run_command: fdopen");
                        (void)close(p[WRITE]);
@@ -203,7 +203,7 @@
 
        default:        /* parent */
                (void)close(p[READ]);
-               nfo = fdopen(p[WRITE], "wef");
+               nfo = fdopen(p[WRITE], "we");
                if (nfo == NULL) {
                        warn("run_function: fdopen");
                        (void)close(p[WRITE]);



Home | Main Index | Thread Index | Old Index