]> granicus.if.org Git - php/commitdiff
Quote grep patterns to avoid shell interpretation
authorJohn Donagher <jdonagher@php.net>
Fri, 13 Jul 2001 01:46:31 +0000 (01:46 +0000)
committerJohn Donagher <jdonagher@php.net>
Fri, 13 Jul 2001 01:46:31 +0000 (01:46 +0000)
ext/pfpro/config.m4

index 27853d9954bb3e0ac97362451ee06cb12f69618a..fac40cdca9140217e89effaf0d2ac911fba34337 100644 (file)
@@ -38,8 +38,8 @@ if test "$PHP_PFPRO" != "no"; then
                  ./configure --with-pfpro=<pfpro-dir> if necessary)
   fi
 
-  PFPRO_VERSION3=`nm $PFPRO_LIB_DIR/$PFPRO_LIB | awk '{print $3}' | grep ^pfpro > /dev/null && echo 1 || echo 0`
-  PFPRO_VERSION2=`nm $PFPRO_LIB_DIR/$PFPRO_LIB | awk '{print $3}' | grep ^PN > /dev/null && echo 1 || echo 0`
+  PFPRO_VERSION3=`nm $PFPRO_LIB_DIR/$PFPRO_LIB | awk '{print $3}' | grep '^pfpro' > /dev/null && echo 1 || echo 0`
+  PFPRO_VERSION2=`nm $PFPRO_LIB_DIR/$PFPRO_LIB | awk '{print $3}' | grep '^PN' > /dev/null && echo 1 || echo 0`
 
   if test "$PFPRO_VERSION3" -eq 1 ; then
        PFPRO_VERSION=3