httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: config/2664: Syntax error at line 23 of file 'access.conf' (fwd)
Date Wed, 22 Jul 1998 23:10:46 GMT
Marc Slemko wrote:
> 
> Hmm.  Looking at the code... wtf.  This code looks way bogus to me.
> It does:
	:
>     if (cmd->cmd->name != cmd->end_token) {
	:
> Note the comparison between cmd->cmd->name and cmd->end_token.
> Me thinks that should be a strcmp or strncmp

Yerk.  I think that should be

    if (strncasecmp(cmd->cmd->name, cmd->end_token,
                    strlen(cmd->end_token))) {

unless both are already case-normalised (in which strncmp() is
the way to go).  (*I* haven't checked *that*.)

#ken	P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Group member         <http://www.apache.org/>
"Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>

Mime
View raw message