2011.01.10 17:53 "Re: [Tiff] [libtiff v3.9.4] TIFFClientOpen() & 'w' mode", by Olivier Paquet
On Mon, Jan 10, 2011 at 11:47 AM, IMoL <imol00@gmail.com> wrote:
If I'm reading the code correctly, tif->tif_mode & O_TRUNC in the if statement will always be false. shouldn't that be m & O_TRUNC? So
It certainly looks like that was the intent. As it is written now, there is a bogus attempt to read the header from the truncated file which should fail for reasonable implementations of the read proc. I don't think there would be any harm in "fixing" it but I'd appreciate another set of eyes to look that over.
Olivier