From: mmaslano Date: Fri, 17 Aug 2007 12:53:24 +0000 (+0200) Subject: Remove header in user's crontab. X-Git-Tag: v4.2~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2aea8602a7c45d545845efd44c9ae58bb2226f0;p=cronie Remove header in user's crontab. --- 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 */