Patch-ID#  100269-02
Keywords: bar segmentation fault core dumped
Synopsis: SunOS 4.1.1:'bar tvf rst0' causes segmentation fault
Date: 25/Apr/91

SunOS RELEASE: 4.1, 4.1.1

Topic: 'bar' patch

BugID's fixed with this patch: 1045302

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

Obsolete By: svr4

Problem Description:

BUGID: 1045302

	When attempting to read a bar file a segmentation
	fault (core dumped) error occurs.  Both with t and 
	x options.


	The original problem has more impact than it would appear.
	It looks like the Sun3/3x distributed bar *creates* tapes 
	that cannot be read using your patched bar or by other 
	system, e.g., 386i and Sun4/4c (I was using the SunOS 
	distributed version on these systems).

	This is what you see when bar tape created using the 
	distribution version of bar from a Sun3/3x system is read 
	on another system (Sun4/4c or 386i) or with the patched 
	Sun3/3x version:

	# /usr/tmp/bar tvf /dev/rst0
	bar: Insert volume 2 and press Return when ready.
	bar: Insert volume 3 and press Return when ready.
	bar: Insert volume 4 and press Return when ready.^C# 

INSTALL:

"sun3/bar" will work on both sun3 and sun3x architectures.
"sun4/bar" will work on both sun4 and sun4c architectures.


As root:
# mv /bin/bar /bin/bar.save

# cp sun{3,4}/{4.1,4.1.1}/bar /bin
# chmod 755 /bin/bar
