From nobody@FreeBSD.org  Fri Apr 14 07:20:33 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 2C31637BEA8
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Apr 2000 07:20:33 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id HAA27657;
	Fri, 14 Apr 2000 07:20:33 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200004141420.HAA27657@freefall.freebsd.org>
Date: Fri, 14 Apr 2000 07:20:33 -0700 (PDT)
From: huntting@glarp.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: amanda2.4's SCSI changer script (chg-chio) has broken -info mode
X-Send-Pr-Version: www-1.0

>Number:         18003
>Category:       ports
>Synopsis:       amanda2.4's SCSI changer script (chg-chio) has broken -info mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 14 07:30:01 PDT 2000
>Closed-Date:    Mon Jan 29 12:30:03 PST 2001
>Last-Modified:  Mon Jan 29 12:31:44 PST 2001
>Originator:     Brad Huntting
>Release:        4.0-RELEASE
>Organization:
>Environment:
FreeBSD misc.glarp.com 4.0-RELEASE FreeBSD 4.0-RELEASE #1: Fri Mar 31 10:06:16 MST 2000     root@hunkular.glarp.com:/usr/src/sys/compile/MISC  i386

>Description:
To support SCSI tape changers, amanda2.4 programs call a script which is
typically called "chg-chio" to manipulate the tape change via chio(1).
This script has one erronious line which sends data to STDERR when there
has been no error therby confusing amtape(8) and other programs into thinking
there's something wrong with the tape changer when there isnt.
>How-To-Repeat:
Get a SCSI tape changer, configure /usr/local/etc/amanda/foo/amanda.conf with:

	changerdev      "/dev/ch0"
	tapedev         "/dev/nrsa0"
	tpchanger       "chg-chio"

Then run "amtape foo current" where "foo" is the name of your config.

The command should fail with a nonsensical numeric error message "n m"
where n is the number of slots in your tape library.
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       misc/amanda24/patches/patch-ag
#
echo x - misc/amanda24/patches/patch-ag
sed 's/^X//' >misc/amanda24/patches/patch-ag << 'END-of-misc/amanda24/patches/patch-ag'
X--- changer-src/chg-chio.pl.in Sat Nov  7 02:18:46 1998
X+++ changer-src/chg-chio.pl.in Fri Apr 14 07:58:19 2000
X@@ -347,7 +347,6 @@
X 		$currentTape = 1;
X 	}
X 
X-	print STDERR "$currentTape $max_slot 1\n";
X	print "$currentTape $max_slot 1\n";
X	exit 0;
X }
END-of-misc/amanda24/patches/patch-ag
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->cwt 
Responsible-Changed-By: knu 
Responsible-Changed-When: Sun Apr 16 23:00:18 JST 2000 
Responsible-Changed-Why:  
Over to MAINTAINER 
Responsible-Changed-From-To: cwt->freebsd-ports 
Responsible-Changed-By: will 
Responsible-Changed-When: Fri Jan 26 21:48:49 PST 2001 
Responsible-Changed-Why:  
Return responsibility to general ports team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18003 
State-Changed-From-To: open->closed  
State-Changed-By: cwt 
State-Changed-When: Mon Jan 29 12:30:03 PST 2001 
State-Changed-Why:  
This bug was fixed in amanda v2.4.2 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18003 
>Unformatted:
