Paul Eggert <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]        (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily


_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar

Reply via email to