CNFS offset problems
Katsuhiro Kondou
Katsuhiro_Kondou at isc.org
Tue Feb 18 12:03:59 UTC 2003
In article <ylheb27avy.fsf at windlord.stanford.edu>,
Russ Allbery <rra at stanford.edu> wrote;
} Sorry, wasn't clear... I meant that I'd not seen any problems with my
} system (which uses 1GB buffers) after the very first fix for this some
} weeks ago.
Attached should fix, and I just committed.
--
Katsuhiro Kondou
Index: cnfs.c
===================================================================
RCS file: /home/kondou/news/inn/repository/inn/storage/cnfs/cnfs.c,v
retrieving revision 1.109
diff -u -r1.109 cnfs.c
--- cnfs.c 12 Feb 2003 23:12:43 -0000 1.109
+++ cnfs.c 18 Feb 2003 11:53:09 -0000
@@ -1070,7 +1070,7 @@
return token;
}
/* Article too big? */
- if (cycbuff->len - cycbuff->free < CNFS_BLOCKSIZE - 1)
+ if (cycbuff->len - cycbuff->free < CNFS_BLOCKSIZE + 1)
left = 0;
else
left = cycbuff->len - cycbuff->free - CNFS_BLOCKSIZE - 1;
More information about the inn-workers
mailing list