[Aide] gzip_dbout processing broken in 0.13?

Richard van den Berg richard at vdberg.org
Thu Dec 14 18:20:48 EET 2006


Richard van den Berg wrote:
> This looks like a bug in zlib. I've created a work around (see patch) to
> use fopen() when reading aide.db (but keep open() for writing it), and
> everything looks fine now.

It turns out not to be a bug in zlib after all, just the fact that
fseek() does not change the offset of the open file associated with the
underlying file descriptor when open() is used. So we need to call
lseek() instead.

Please try this (much simpler) patch against aide-0.13. Discard the
previous patch I sent (although applying them both should work as well).

Marc: if this works for you, I'll release aide 0.13.1.

Sincerely,

Richard van den Berg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gzip-input2.patch
Url: http://mailman.cs.tut.fi/pipermail/aide/attachments/20061214/7c11240a/attachment.ksh 


More information about the Aide mailing list