]> git.pld-linux.org Git - packages/openssl.git/blobdiff - openssl-c_rehash.sh
- up to 1.0.0e (fixes CVE-2011-3207, CVE-2011-3210, EC timming attacs)
[packages/openssl.git] / openssl-c_rehash.sh
index 068a0608f763cfe34e8860980e1defdb94a6a6f5..75a774945cf75a4a35f96cc548199e8c1270a68f 100644 (file)
@@ -31,7 +31,7 @@ check_file()
 
     # make IFS a newline so we can process grep output line by line
     local OLDIFS=${IFS}
-    IFS="\n"
+    IFS=$( printf "\n" )
 
     # XXX: could be more efficient to have two 'grep -m' but is -m portable?
     for LINE in $( grep '^-----BEGIN .*-----' ${1} )
@@ -165,11 +165,11 @@ hash_dir()
 # choose the name of an ssl application
 if [ -n "${OPENSSL}" ]
 then
-    SSL_CMD=${OPENSSL}
+    SSL_CMD=$(which ${OPENSSL} 2>/dev/null)
 else
-    SSL_CMD=openssl
+    SSL_CMD=/usr/bin/openssl
     OPENSSL=${SSL_CMD}
-    export ${OPENSSL}
+    export OPENSSL
 fi
 
 # fix paths
@@ -177,7 +177,7 @@ PATH=${PATH}:${DIR}/bin
 export PATH
 
 # confirm existance/executability of ssl command
-if ! [ -x $( which ${SSL_CMD} ) ]
+if ! [ -x ${SSL_CMD} ]
 then
     echo "${0}: rehashing skipped ('openssl' program not available)" >&2
     exit 0
This page took 0.031033 seconds and 4 git commands to generate.