pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/27207: sysutils/amanda-common: chg-disk not working (patch supplied)



>Number:         27207
>Category:       pkg
>Synopsis:       sysutils/amanda-common: chg-disk not working (patch supplied)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 10 17:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 2.99.9
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 2.99.9 NetBSD 2.99.9 (GENERIC) #0: Sat Oct 2 
13:45:41 CEST 2004 
build%himo.salmi.ch@localhost:/build/nbsd/usr/src/sys/arch/i386/compile/GENERIC 
i386
Architecture: i386
Machine: i386
>Description:
The chg-disk changer shipped with Amanda 2.4.4p2 doesn't work at least with
NetBSD /bin/sh.
>How-To-Repeat:
See amanda-2.4.4p2/changer-src/chg-disk.sh.in:
$ grep '\$\[' amanda-2.4.4p2/changer-src/chg-disk.sh.in                        
    NEWSLOT=$[$CURSLOT+1]
      NEWSLOT=$[$CURSLOT-1]
    echo $[$CLEANCOUNT+1] > $CLEANFILE
    echo $[ACCESSCOUNT+1] > $ACCESSFILE

The $[expr] syntax is not portable, e.g. NetBSD /bin/sh doesn't support it.
This is fixed in Amanda 2.4.4p3.
>Fix:
Update package to 2.4.4p3, or apply a patch (which I'll send in a minute).
>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index