[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#214905: apache: problems with suggested corrections tests



Package: apache
Version: 1.3.28-1

It's another VirtualHost problem.  I have two virtual hosts, and they
each declare an Alias /icons/.  So the
/usr/share/apache/postinst.common script, in the
suggested_corrections() function (which incidentally has the wrong
error message on line 9:
  echo "Wrong number of arguments to fix_pid"
instead of
  echo "Wrong number of arguments to suggested_corrections"
- oops).  The function does the following:

  icons=`grep "^Alias /icons/" $i | awk '{print $NF}'`

Better would be:

  icons=`grep "^Alias /icons/" $i | head -1 | awk '{print $NF}'`

and then it would just check the first one; alternatively, you could
design a check for where there is more than one such Alias.

The same applies to the other such tests.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

        Julian Gilbey, website: http://www.polya.uklinux.net/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: