* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: conf.c,v 1.62 2002-11-01 18:13:49 thib Exp $ */
+ /* $Id: conf.c,v 1.63 2002-11-02 19:34:55 thib Exp $ */
#include "fcron.h"
insert_nextexe(cl);
} else { /* is_td(cl->cl_option) */
/* standard @-lines */
- if ( is_volatile(cl->cl_option) || cl->cl_first > 0 ) {
+ if ( is_volatile(cl->cl_option) ) {
/* cl_first is always saved for a volatile line */
cl->cl_nextexe = now + cl->cl_first;
} else
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fileconf.c,v 1.67 2002-11-01 18:08:30 thib Exp $ */
+ /* $Id: fileconf.c,v 1.68 2002-11-02 19:33:25 thib Exp $ */
#include "fcrontab.h"
goto exiterr;
}
- if ( cl->cl_first == -1 )
+ if ( is_volatile(cl->cl_option) && cl->cl_first == -1 )
/* time before first execution is not specified */
cl->cl_first = cl->cl_timefreq;
+ else
+ cl->cl_nextexe = cl->cl_timefreq;
/* check for inline runas */
ptr = check_username(ptr, cf, cl);