[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Warning message when reading partial blocks from stdin.
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] Warning message when reading partial blocks from stdin. |
Date: |
Wed, 20 Apr 2005 09:20:20 +0200 |
User-agent: |
nail 11.2 8/15/04 |
Paul Eggert <address@hidden> wrote:
> > Really? 7th edition tar checks the number of bytes returned after the
> > first call to read() only.
>
> I was referring to historical practice in creating files. POSIX
> specifies only the file format; it doesn't specify tar's behavior.
If you follow the POSIX rules for _creating_ tar archives, you cannot
have archivesize % TBLOCK != 0
As we do no longer live in the 1970s, it is obious to test for
impossible things and to warn.....
BSD tar does not work at all when a read size is not a multiple of 512.
Star aborts with an error message is a read(2) returns less than 512 bytes;
this is also true when reading CPIO archives.
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni)
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
- [Bug-tar] Warning message when reading partial blocks from stdin., Laurence Bond, 2005/04/14
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Paul Eggert, 2005/04/16
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Joerg Schilling, 2005/04/16
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Gunnar Ritter, 2005/04/16
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Joerg Schilling, 2005/04/19
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Gunnar Ritter, 2005/04/19
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Paul Eggert, 2005/04/19
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Gunnar Ritter, 2005/04/19
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Paul Eggert, 2005/04/20
- Re: [Bug-tar] Warning message when reading partial blocks from stdin.,
Joerg Schilling <=
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Gunnar Ritter, 2005/04/20
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Gunnar Ritter, 2005/04/20
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Joerg Schilling, 2005/04/22
- Re: [Bug-tar] Warning message when reading partial blocks from stdin., Gunnar Ritter, 2005/04/22
Message not available