PATCH: hisv6_replace() fix

Russ Allbery rra at stanford.edu
Tue Jun 7 04:25:10 UTC 2005


Chris Caputo <ccaputo at alt.net> writes:

> Ok.  Here's the better patch.

> This patch is needed to make prunehistory work.

> The change from using "a" to using "r+" for the history file Fopen() is
> because pwrite() will not be able to update to the absolute file
> location if a file is opened in append mode.  "r+" enables full
> read/write.

> What was happening prior to this patch with prunehistory is a corrupted
> line was being written to the end of the history file, rather than a
> clean line to the correct location.

Thanks, applied.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list