Source-Changes-HG archive

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

[src/netbsd-9]: src/external/bsd/cron/dist Pull up following revision(s) (req...



details:   https://anonhg.NetBSD.org/src/rev/5e561f02c397
branches:  netbsd-9
changeset: 458125:5e561f02c397
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Aug 04 19:22:24 2019 +0000

description:
Pull up following revision(s) (requested by christos in ticket #13):

        external/bsd/cron/dist/do_command.c: revision 1.14

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 61e76f862933 -r 5e561f02c397 external/bsd/cron/dist/do_command.c
--- a/external/bsd/cron/dist/do_command.c       Sun Aug 04 19:20:49 2019 +0000
+++ b/external/bsd/cron/dist/do_command.c       Sun Aug 04 19:22:24 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.13.4.1 2019/08/04 19:22:24 martin 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.13.4.1 2019/08/04 19:22:24 martin 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