Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/409066f3b8ad
branches:  netbsd-7
changeset: 798329:409066f3b8ad
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Sep 08 19:15:03 2014 +0000

description:
Pull up following revision(s) (requested by tron in ticket #81):
        external/bsd/cron/dist/crontab.c: revision 1.8
Rewind the file before we install it so that we can check it.
Before this fix, no checks were made and you could install crap.
XXX: pullup 7

diffstat:

 external/bsd/cron/dist/crontab.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r b29b7ad3680a -r 409066f3b8ad external/bsd/cron/dist/crontab.c
--- a/external/bsd/cron/dist/crontab.c  Mon Sep 08 19:12:04 2014 +0000
+++ b/external/bsd/cron/dist/crontab.c  Mon Sep 08 19:15:03 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crontab.c,v 1.7 2012/11/03 17:33:01 christos Exp $     */
+/*     $NetBSD: crontab.c,v 1.7.10.1 2014/09/08 19:15:03 msaitoh Exp $ */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -25,7 +25,7 @@
 #if 0
 static char rcsid[] = "Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: crontab.c,v 1.7 2012/11/03 17:33:01 christos Exp $");
+__RCSID("$NetBSD: crontab.c,v 1.7.10.1 2014/09/08 19:15:03 msaitoh Exp $");
 #endif
 #endif
 
@@ -638,7 +638,7 @@
         */
        (void)fprintf(tmp, "# DO NOT EDIT THIS FILE - edit the master and reinstall.\n");
        (void)fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now));
-       (void)fprintf(tmp, "# (Cron version %s -- %s)\n", CRON_VERSION, "$NetBSD: crontab.c,v 1.7 2012/11/03 17:33:01 christos Exp $");
+       (void)fprintf(tmp, "# (Cron version %s -- %s)\n", CRON_VERSION, "$NetBSD: crontab.c,v 1.7.10.1 2014/09/08 19:15:03 msaitoh Exp $");
 
        /* copy the crontab to the tmp
         */
@@ -680,6 +680,7 @@
         */
        Set_LineNum(1 - NHEADER_LINES);
        CheckErrorCount = 0;  eof = FALSE;
+       rewind(tmp);
        while (!CheckErrorCount && !eof) {
                switch (load_env(envstr, tmp)) {
                case ERR:



Home | Main Index | Thread Index | Old Index