Coda File System

bashism in rpc2

From: Greg Troxel <gdt_at_ir.bbn.com>
Date: Wed, 11 Apr 2007 14:06:02 -0400
pkgsrc complained about this when I went to update.

(I as about to write that there was a bad link; the download page showed
2.4 but the fetch failed.  I tried 2.5 and it worked and it dawned on me
that perhaps I looked exactly at release time.)


Index: secure/gen_testvectors.sh
===================================================================
RCS file: /coda-src/rpc2/secure/gen_testvectors.sh,v
retrieving revision 1.1
diff -u -p -r1.1 gen_testvectors.sh
--- secure/gen_testvectors.sh	23 Mar 2006 19:30:54 -0000	1.1
+++ secure/gen_testvectors.sh	11 Apr 2007 18:04:48 -0000
@@ -48,7 +48,7 @@ vectors () {
     keysize=0
     cat $file | sed 's/\r//' | while read key value
     do
-	if [ "$key" == KEYSIZE -a "$value" != "$keysize" ] ; then
+	if [ "$key" = KEYSIZE -a "$value" != "$keysize" ] ; then
 	    I=0
 	    keysize="$value"
 	fi
Received on 2007-04-11 14:08:41