On Fri, 14 May 2010 16:54:42 -0600, gil wrote:
>That gives no report of a corrupted file; it quietly pretends it's OK.

You could hook something up to the alternate output of LOCATE to report
the extra short record.

>But what if a few characters were deleted, or added at the beginning?

If characters were deleted in the middle of what was being unpacked,
you'd get an error (unless of course they happened to leave a valid
packed file).

If characters were added or deleted at the beginning, the whole file
(minus any short last record) would be copied without unpacking.  You
could detect that by examining the first few bytes before starting.

¬R  / Darla:  Leftovers aren't the mark of a man. \ www.bestweb.net/~notr
Andrew Reid:  Actually, they are, because that's how men's shirts button.

Reply via email to