TAR DOES NOT SWAP BYTES

Mark Weiser mark at tove.UUCP
Wed Oct 9 01:43:29 AEST 1985


> If you create a tar 'file' (not tape), and transfer it between systems
> the file will require byte swapping between big-endian and little endian
> machines.  

I just happened to have a ready-made experiment, having just
tared, moved, and then untared a directory from a vax (little-endian) to a
pyramid (big-endian).  File was moved with rcp.  I tried untaring
a file at the vax end, cmp'd the results with a file untared at the pyramid
end and then rcp'd back, and the files were identical.  Of course
rcp could have swapped the bytes back during the xfer before the cmp,
but how could it have known I was going to do a cmp?

In other words, TAR DOES NOT SWAP BYTES (nor should it, nor should
anyone else need them to be swapped when xfering files).
	-mark


-- 
Spoken: Mark Weiser 	ARPA:	mark at maryland	Phone: +1-301-454-7817
CSNet:	mark at umcp-cs 	UUCP:	{seismo,allegra}!umcp-cs!mark
USPS: Computer Science Dept., University of Maryland, College Park, MD 20742



More information about the Comp.unix.wizards mailing list