[PATCH 6/6] Handle short reads in archive_tar_file::read()

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Apr 20 16:41:00 GMT 2011


On Apr  8 15:43, Jon TURNEY wrote:
> archive_tar_file::read() currently considers any short read an error.
> 
> These can now occur if the underlying bz2 compressed io_stream starts a
> new compression stream in the middle of the read
> 
> It also transparently reads to the next 512-byte block in the parent
> io_stream after reading all the data expected for a file.
> 
> Teach it to do things correctly, even if a short read occurs.
> 
> 2011-04-08  Jon TURNEY  <...>
>
> 	* archive_tar_file.cc (read): Handle short reads

Same here.  I guess it goes without saying that you tested it...


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-apps mailing list