X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fbfile.c;h=210946eb780aae6b2d4387e5a02678b65a505883;hb=90a8309f2165abe2cd76e096837d886cc9fe89fb;hp=bf73dc3a39f0506687f4c19c457ee7b3f5804a81;hpb=d75b9accf5a28bd5d8ffd70bbb33b3e8e009d079;p=idzebra-moved-to-github.git diff --git a/bfile/bfile.c b/bfile/bfile.c index bf73dc3..210946e 100644 --- a/bfile/bfile.c +++ b/bfile/bfile.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: bfile.c,v $ - * Revision 1.12 1995-11-30 08:33:10 adam + * Revision 1.13 1995-11-30 17:00:49 adam + * Several bug fixes. Commit system runs now. + * + * Revision 1.12 1995/11/30 08:33:10 adam * Started work on commit facility. * * Revision 1.11 1995/09/04 12:33:21 adam @@ -75,7 +78,7 @@ BFile bf_open (const char *name, int block_size, int wflag) int first_time; logf (LOG_LOG, "cf,mf_open %s, cache_name=%s", name, cache_name); - tmp->mf = mf_open(0, name, block_size, wflag); + tmp->mf = mf_open(0, name, block_size, 0); tmp->cf = cf_open(tmp->mf, cache_name, name, block_size, wflag, &first_time); @@ -130,7 +133,7 @@ void bf_commit (const char *name) logf (LOG_FATAL|LOG_ERRNO, "cannot open commit %s", name); exit (1); } - while (fscanf (inf, "%s %d", path, &block_size) == 1) + while (fscanf (inf, "%s %d", path, &block_size) == 2) { mf = mf_open(0, path, block_size, 1); cf = cf_open(mf, name, path, block_size, 0, &first_time);