From: Thibault Godouet Date: Thu, 29 Jun 2000 21:12:22 +0000 (+0000) Subject: temporary removed check of end of file of a fcrontab X-Git-Tag: ver2_9_4~634 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ab47fc99789f04d75094a9070476b4a233eb4a;p=thirdparty%2Ffcron.git temporary removed check of end of file of a fcrontab --- diff --git a/conf.c b/conf.c index c46d427..ae05e6b 100644 --- a/conf.c +++ b/conf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: conf.c,v 1.16 2000-06-28 16:25:28 thib Exp $ */ + /* $Id: conf.c,v 1.17 2000-06-29 21:12:22 thib Exp $ */ #include "fcron.h" @@ -539,9 +539,9 @@ read_file(const char *file_name, CF *cf) /* free last calloc : unused */ free(cl); - if (fgets(buf, sizeof(buf), ff) == NULL || - strncmp(buf, "eof\n", sizeof("eof\n")) != 0) - error("file '%s' is truncated : you should reinstall it", file_name); +// if (fgets(buf, sizeof(buf), ff) == NULL || +// strncmp(buf, "eof\n", sizeof("eof\n")) != 0) +// error("file '%s' is truncated : you should reinstall it", file_name); fclose(ff); @@ -700,10 +700,10 @@ save_file(CF *file, char *path) } - /* then, write the number of lines to permit to check if the file - * is complete (i.e. fcron may has been interrupted during - * save process */ - fprintf(f, "eof\n"); +// /* then, write the number of lines to permit to check if the file +// * is complete (i.e. fcron may has been interrupted during +// * save process */ +// fprintf(f, "eof\n"); fclose(f); diff --git a/fileconf.c b/fileconf.c index c941e2e..7b0ac59 100644 --- a/fileconf.c +++ b/fileconf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.11 2000-06-28 14:01:05 thib Exp $ */ + /* $Id: fileconf.c,v 1.12 2000-06-29 21:12:44 thib Exp $ */ #include "fcrontab.h" @@ -1145,10 +1145,10 @@ save_file(char *path) } } - /* finally, write the number of lines to permit to check if the file - * is complete (i.e. fcron may has been interrupted during - * save process */ - fprintf(f, "eof\n"); +// /* finally, write the number of lines to permit to check if the file +// * is complete (i.e. fcron may has been interrupted during +// * save process */ +// fprintf(f, "eof\n"); fclose(f);