Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/cron/dist PR/54433: Hisashi Todd Fujinaka: Empt...



details:   https://anonhg.NetBSD.org/src/rev/2469686461cd
branches:  trunk
changeset: 964473:2469686461cd
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 03 07:06:47 2019 +0000

description:
PR/54433: Hisashi Todd Fujinaka: Empty $MAILTO causes cron to crash

diffstat:

 external/bsd/cron/dist/do_command.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r aa4915f34ff0 -r 2469686461cd external/bsd/cron/dist/do_command.c
--- a/external/bsd/cron/dist/do_command.c       Sat Aug 03 06:29:52 2019 +0000
+++ b/external/bsd/cron/dist/do_command.c       Sat Aug 03 07:06:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: do_command.c,v 1.13 2018/06/14 22:04:28 christos Exp $ */
+/*     $NetBSD: do_command.c,v 1.14 2019/08/03 07:06:47 christos Exp $ */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -25,7 +25,7 @@
 #if 0
 static char rcsid[] = "Id: do_command.c,v 1.9 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: do_command.c,v 1.13 2018/06/14 22:04:28 christos Exp $");
+__RCSID("$NetBSD: do_command.c,v 1.14 2019/08/03 07:06:47 christos Exp $");
 #endif
 #endif
 
@@ -182,7 +182,7 @@
        /*
         * Unsafe, disable mailing.
         */
-       if (!safe_p(usernm, mailto))
+       if (mailto && !safe_p(usernm, mailto))
                mailto = NULL;
 
        /* if we are supposed to be mailing, MAILTO will



Home | Main Index | Thread Index | Old Index