From owner-freebsd-ports Fri Apr 14 7:30: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6506437BEE9 for ; Fri, 14 Apr 2000 07:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA29085; Fri, 14 Apr 2000 07:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2C31637BEA8 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/18003: amanda2.4's SCSI changer script (chg-chio) has broken -info mode Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 14 07:30:01 PDT 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message