Bug#214905: apache: problems with suggested corrections tests
Hi Julian,
the code needs to be partially rewritten. I will look into that
asap.
Fabio
On Thu, 9 Oct 2003, Julian Gilbey wrote:
> 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
>
>
--
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues
http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html
Reply to: