From c2aea8602a7c45d545845efd44c9ae58bb2226f0 Mon Sep 17 00:00:00 2001 From: mmaslano Date: Fri, 17 Aug 2007 14:53:24 +0200 Subject: [PATCH] Remove header in user's crontab. --- crontab.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crontab.c b/crontab.c index 6a30f8a..1c9eea5 100644 --- a/crontab.c +++ b/crontab.c @@ -32,7 +32,7 @@ static char rcsid[] = "$Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $"; #include "cron.h" -#define NHEADER_LINES 3 +#define NHEADER_LINES 0 enum opt_t { opt_unknown, opt_list, opt_delete, opt_edit, opt_replace }; @@ -554,9 +554,10 @@ replace_cmd(void) { * * VERY IMPORTANT: make sure NHEADER_LINES agrees with this code. */ - 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 -- %s)\n", CRON_VERSION, rcsid); + /*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 -- %s)\n", CRON_VERSION, rcsid); + */ /* copy the crontab to the tmp */ -- 2.40.0