]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
temporary removed check of end of file of a fcrontab
authorThibault Godouet <yo8192@users.noreply.github.com>
Thu, 29 Jun 2000 21:12:22 +0000 (21:12 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Thu, 29 Jun 2000 21:12:22 +0000 (21:12 +0000)
conf.c
fileconf.c

diff --git a/conf.c b/conf.c
index c46d427ef42ebc54e4d1b5827ffab2e74044dc4a..ae05e6b0d88d03525bb452ada9a185bd835a8c48 100644 (file)
--- 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);
 
index c941e2e5b440062393c8e4dfdb1b984976416b3f..7b0ac59b61d4e84f445435d2c776a7b94dc56f11 100644 (file)
@@ -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);