From 3eaa53c06617e6f2f2c5b1edad4cc6dc17dc490b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 19 Mar 2008 19:45:49 +0000 Subject: [PATCH] Try to find unzip. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22696 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/test_nist2.in | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/hx509/test_nist2.in b/lib/hx509/test_nist2.in index 661612989..09390164c 100644 --- a/lib/hx509/test_nist2.in +++ b/lib/hx509/test_nist2.in @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (c) 2004 - 2005 Kungliga Tekniska Högskolan +# Copyright (c) 2004 - 2008 Kungliga Tekniska Högskolan # (Royal Institute of Technology, Stockholm, Sweden). # All rights reserved. # @@ -55,6 +55,22 @@ if ${hxtool} info | grep 'rand: not available' > /dev/null ; then exit 77 fi +#--------- Try to find unzip + +oldifs=$IFS +IFS=: +set -- $PATH +IFS=$oldifs +found= + +for p in "$@" ; do + test -x "$p/unzip" && { found=1 ; break; } +done +test "X$found" = "X" && exit 77 + +#--------- + + echo "nist tests, version 2" if [ ! -d "$nistdir" ] ; then