Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.sbin/cron pullup 1.14->1.15 (christos)



details:   https://anonhg.NetBSD.org/src/rev/9d3e27a5a3b1
branches:  netbsd-1-4
changeset: 468819:9d3e27a5a3b1
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 21 16:20:13 1999 +0000

description:
pullup 1.14->1.15 (christos)

diffstat:

 usr.sbin/cron/crontab.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 6cbc6fc4a7b9 -r 9d3e27a5a3b1 usr.sbin/cron/crontab.c
--- a/usr.sbin/cron/crontab.c   Mon Jun 21 16:17:44 1999 +0000
+++ b/usr.sbin/cron/crontab.c   Mon Jun 21 16:20:13 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crontab.c,v 1.12 1999/03/23 22:53:30 thorpej Exp $     */
+/*     $NetBSD: crontab.c,v 1.12.2.1 1999/06/21 16:20:13 perry Exp $   */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -22,7 +22,7 @@
 #if 0
 static char rcsid[] = "Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp";
 #else
-__RCSID("$NetBSD: crontab.c,v 1.12 1999/03/23 22:53:30 thorpej Exp $");
+__RCSID("$NetBSD: crontab.c,v 1.12.2.1 1999/06/21 16:20:13 perry Exp $");
 #endif
 #endif
 
@@ -316,6 +316,7 @@
        int             ch, t, x;
        struct stat     statbuf;
        time_t          mtime;
+       long            mtimensec;
        WAIT_T          waiter;
        PID_T           pid, xpid;
 
@@ -394,6 +395,7 @@
                goto fatal;
        }
        mtime = statbuf.st_mtime;
+       mtimensec = statbuf.st_mtimensec;
 
        if ((!(editor = getenv("VISUAL")))
         && (!(editor = getenv("EDITOR")))
@@ -461,7 +463,7 @@
                perror("fstat");
                goto fatal;
        }
-       if (mtime == statbuf.st_mtime) {
+       if (mtime == statbuf.st_mtime && mtimensec == statbuf.st_mtimensec) {
                fprintf(stderr, "%s: no changes made to crontab\n",
                        ProgramName);
                goto remove;
@@ -530,7 +532,7 @@
        fprintf(tmp, "# DO NOT EDIT THIS FILE - edit the master and reinstall.\n");
        fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now));
        fprintf(tmp, "# (Cron version -- %s)\n",
-           "$NetBSD: crontab.c,v 1.12 1999/03/23 22:53:30 thorpej Exp $");
+           "$NetBSD: crontab.c,v 1.12.2.1 1999/06/21 16:20:13 perry Exp $");
 
        /* copy the crontab to the tmp
         */



Home | Main Index | Thread Index | Old Index