Patch-ID# 100413-01
Keywords: non-relate, tar, fill, block, mtab, /etc/mtab, security, tarfile, data
Synopsis: SunOS4.1;4.1.1: tar fills last block of tarfile with unrelated data
Date: 23/Oct/91

SunOS release: 4.1 4.1.1

Unbundled Product: 

Unbundled Release: 

Topic: replace all the "malloc" calls into "calloc"

BugId's fixed with this patch: 1067839

Architectures for which this patch is available: sun3, sun3x, sun4, sun4c

Patches which may conflict with this patch: 100381

Obsoleted by: svr4

Files included with this patch: tar

Problem Description: 
Tar usually fills out the last block of the tar file with data from the
/etc/mtab file.

This has been reproduced on multiple sun4 and sun4c machines - one machine
out of 5 did not exhibit the problem (that machine was one of two 4/75's tested,both of which have the same OS revision and amount of RAM).  It has been
reproduced on local, nfs mounted, and tmpfs directories, and has been
reproduced on machines both with and without a tmpfs /tmp file system.  The
length of the file(s) being tar'ed does not seem to make a difference.


Install Instructions: 

 the sun4 version will work on both sun4 and sun4c
 the sun3 version will work on both sun3 and sun3x

 AS ROOT:
 	1) mv /bin/tar /bin/tar.fcs

	2) copy the corresponding executable into /bin
	 
		cp `arch`/{4.1,4.1.1}/tar /bin
 
	3) chmod 755 /bin/tar


