]> granicus.if.org Git - fcron/commitdiff
bug corrected : a "%dow"-line used to be not handled correctly.
authorthib <thib>
Sun, 10 Dec 2000 20:29:25 +0000 (20:29 +0000)
committerthib <thib>
Sun, 10 Dec 2000 20:29:25 +0000 (20:29 +0000)
database.c

index 2199284875ff282486f123b796bd4e3e655d65a5..6eb70d759e9332680db63afc83bc61d6b33c6299 100644 (file)
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: database.c,v 1.40 2000-12-10 10:58:33 thib Exp $ */
+ /* $Id: database.c,v 1.41 2000-12-10 20:29:25 thib Exp $ */
 
 #include "fcron.h"
 
@@ -644,14 +644,14 @@ goto_non_matching(CL *line, struct tm *ftime)
                else ftime->tm_hour++;
                if (ftime->tm_hour >= 24) {
                    ftime->tm_hour = 0;
-                   if (ignore_days && ignore_hrs && ignore_mins)
-                       ftime->tm_mday=32;
+                   if (ignore_days && ignore_hrs && ignore_mins && ignore_dow)
+                       ftime->tm_mday = 32;
                    else ftime->tm_mday++;
                    if (ftime->tm_mday >= 
                        get_nb_mdays((ftime->tm_year+1900),ftime->tm_mon)) {
                        ftime->tm_mday = 0;
-                       if(ignore_mons && ignore_days && ignore_hrs
-                          && ignore_mins)
+                       if(ignore_mons && ignore_days && ignore_dow
+                          && ignore_hrs && ignore_mins)
                            ftime->tm_mon = 12;
                        else ftime->tm_mon++;
                        if (ftime->tm_mon >= 12) {