pier        02/05/01 08:29:36

  Modified:    webapp/support wa_util.m4
  Log:
  Added check if weird characters are in the specified directory when trying
  to resolve its full path (like, newlines at the end and such, M4 sucks).
  
  Revision  Changes    Path
  1.2       +6 -4      jakarta-tomcat-connectors/webapp/support/wa_util.m4
  
  Index: wa_util.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_util.m4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- wa_util.m4        1 May 2002 00:31:07 -0000       1.1
  +++ wa_util.m4        1 May 2002 15:29:36 -0000       1.2
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <[EMAIL PROTECTED]>
  -dnl Version $Id: wa_util.m4,v 1.1 2002/05/01 00:31:07 pier Exp $
  +dnl Version $Id: wa_util.m4,v 1.2 2002/05/01 15:29:36 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -96,9 +96,10 @@
     [WA_PATH_DIR],
     [
       AC_MSG_CHECKING([for $3 path])
  -    if test -d "$2" ; then
  +    tempval="`echo $2`"
  +    if test -d "${tempval}" ; then
         curdir="`pwd`"
  -      cd "$2"
  +      cd "${tempval}"
         newdir="`pwd`"
         $1="${newdir}"
         AC_SUBST($1)
  @@ -107,8 +108,9 @@
         unset curdir
         unset newdir
       else
  -      WA_ERROR([directory $2 not found])
  +      WA_ERROR([directory ${tempval} not found])
       fi
  +    unset tempval
     ])
   
   dnl --------------------------------------------------------------------------
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to