* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fileconf.c,v 1.38 2001-02-01 20:49:31 thib Exp $ */
+ /* $Id: fileconf.c,v 1.39 2001-02-10 12:53:57 thib Exp $ */
#include "fcrontab.h"
goto exiterr;
}
+#ifndef SENDMAIL
+ clear_mail(cl->cl_option);
+#endif
+
cl->cl_next = cf->cf_line_base;
cf->cf_line_base = cl;
goto exiterr;
}
+#ifndef SENDMAIL
+ clear_mail(cl->cl_option);
+#endif
+
cl->cl_next = cf->cf_line_base;
cf->cf_line_base = cl;
}
ok:
+#ifndef SENDMAIL
+ clear_mail(cl->cl_option);
+#endif
+
cl->cl_next = cf->cf_line_base;
cf->cf_line_base = cl;
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: job.c,v 1.33 2001-02-01 20:52:06 thib Exp $ */
+ /* $Id: job.c,v 1.34 2001-02-10 12:56:12 thib Exp $ */
#include "fcron.h"
launch_mailer(CL *line, int mailfd)
/* mail the output of a job to user */
{
+#ifdef SENDMAIL
foreground = 0;
/* set stdin to the job's output */
error_e("Can't find \""SENDMAIL"\". Trying a execlp(\"sendmail\")");
execlp("sendmail", "sendmail", SENDMAIL_ARGS, line->cl_mailto, NULL);
die_e("Can't exec " SENDMAIL);
-
+#else /* defined(SENDMAIL) */
+ exit(EXIT_OK);
+#endif
}
int