neozeed ircu2.9.32-linux-hacks.diff
This commit is contained in:
@@ -327,7 +327,7 @@ int statmask;
|
||||
}
|
||||
else if ((tmp->status & statmask) && !IsIllegal(tmp) &&
|
||||
(tmp->status & (CONF_SERVER_MASK|CONF_HUB)) &&
|
||||
tmp->name && !mycmp(tmp->name, name))
|
||||
tmp->name && !strcasecmp(tmp->name, name))
|
||||
{
|
||||
if (!attach_conf(cptr, tmp) && !first)
|
||||
first = tmp;
|
||||
@@ -362,7 +362,7 @@ int statmask;
|
||||
}
|
||||
else if ((tmp->status & statmask) && !IsIllegal(tmp) &&
|
||||
(tmp->status & CONF_SERVER_MASK) &&
|
||||
(tmp->host && mycmp(tmp->host, host) == 0))
|
||||
(tmp->host && strcasecmp(tmp->host, host) == 0))
|
||||
{
|
||||
if (!attach_conf(cptr, tmp) && !first)
|
||||
first = tmp;
|
||||
@@ -386,7 +386,7 @@ int statmask;
|
||||
for (tmp = conf; tmp; tmp = tmp->next)
|
||||
{
|
||||
if (!(tmp->status & statmask) || !tmp->name || !tmp->host ||
|
||||
mycmp(tmp->name, name))
|
||||
strcasecmp(tmp->name, name))
|
||||
continue;
|
||||
/*
|
||||
** Accept if the *real* hostname (usually sockecthost)
|
||||
@@ -443,7 +443,7 @@ int statmask;
|
||||
tmp = lp->value.aconf;
|
||||
if ((tmp->status & statmask) &&
|
||||
(((tmp->status & (CONF_SERVER_MASK|CONF_HUB)) &&
|
||||
tmp->name && !mycmp(tmp->name, name)) ||
|
||||
tmp->name && !strcasecmp(tmp->name, name)) ||
|
||||
((tmp->status & (CONF_SERVER_MASK|CONF_HUB)) == 0 &&
|
||||
tmp->name && !match(tmp->name, name))))
|
||||
return tmp;
|
||||
@@ -527,20 +527,20 @@ u_int mask;
|
||||
if ((BadPtr(bconf->host) && !BadPtr(aconf->host)) ||
|
||||
(BadPtr(aconf->host) && !BadPtr(bconf->host)))
|
||||
continue;
|
||||
if (!BadPtr(bconf->host) && mycmp(bconf->host, aconf->host))
|
||||
if (!BadPtr(bconf->host) && strcasecmp(bconf->host, aconf->host))
|
||||
continue;
|
||||
|
||||
if ((BadPtr(bconf->passwd) && !BadPtr(aconf->passwd)) ||
|
||||
(BadPtr(aconf->passwd) && !BadPtr(bconf->passwd)))
|
||||
continue;
|
||||
if (!BadPtr(bconf->passwd) && mycmp(bconf->passwd, "ONE") &&
|
||||
mycmp(bconf->passwd, aconf->passwd))
|
||||
if (!BadPtr(bconf->passwd) && strcasecmp(bconf->passwd, "ONE") &&
|
||||
strcasecmp(bconf->passwd, aconf->passwd))
|
||||
continue;
|
||||
|
||||
if ((BadPtr(bconf->name) && !BadPtr(aconf->name)) ||
|
||||
(BadPtr(aconf->name) && !BadPtr(bconf->name)))
|
||||
continue;
|
||||
if (!BadPtr(bconf->name) && mycmp(bconf->name, aconf->name))
|
||||
if (!BadPtr(bconf->name) && strcasecmp(bconf->name, aconf->name))
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
@@ -650,7 +650,7 @@ int sig;
|
||||
(void)attach_confs(acptr, acptr->name,
|
||||
CONF_HUB|CONF_LEAF|CONF_UWORLD);
|
||||
}
|
||||
if (found_g = find_kill(acptr))
|
||||
if ((found_g = find_kill(acptr)))
|
||||
{
|
||||
sendto_ops(found_g == -2 ? "G-line active for %s" :
|
||||
"K-line active for %s",
|
||||
@@ -781,7 +781,7 @@ int opt;
|
||||
if (!*(tmp+1))
|
||||
break;
|
||||
else
|
||||
for (s = tmp; *s = *(s+1); s++)
|
||||
for (s = tmp; (*s = *(s+1)); s++)
|
||||
;
|
||||
}
|
||||
else if (*tmp == '#')
|
||||
@@ -941,7 +941,7 @@ int opt;
|
||||
{
|
||||
aConfItem *bconf;
|
||||
|
||||
if (bconf = find_conf_entry(aconf, aconf->status))
|
||||
if ((bconf = find_conf_entry(aconf, aconf->status)))
|
||||
{
|
||||
delist_conf(bconf);
|
||||
bconf->status &= ~CONF_ILLEGAL;
|
||||
@@ -1146,7 +1146,7 @@ aClient *cptr;
|
||||
if ((tmp->status == CONF_KILL) && tmp->host && tmp->name &&
|
||||
(match(tmp->host, host) == 0) &&
|
||||
(!name || match(tmp->name, name) == 0) &&
|
||||
(!tmp->port || (tmp->port == cptr->acpt->port)))
|
||||
(!tmp->port || (tmp->port == cptr->acpt->port))) {
|
||||
/* can short-circuit evaluation - not taking chances
|
||||
cos check_time_interval destroys tmp->passwd
|
||||
- Mmmm
|
||||
@@ -1157,6 +1157,7 @@ aClient *cptr;
|
||||
break;
|
||||
else if (check_time_interval(tmp->passwd, reply))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (reply[0])
|
||||
@@ -1318,7 +1319,6 @@ char *parv, *filename;
|
||||
char line[80];
|
||||
Reg1 char *tmp;
|
||||
struct stat sb;
|
||||
struct tm *tm;
|
||||
|
||||
/*
|
||||
* stop NFS hangs...most systems should be able to open a file in
|
||||
@@ -1336,7 +1336,6 @@ char *parv, *filename;
|
||||
return 0;
|
||||
}
|
||||
(void)fstat(fd, &sb);
|
||||
tm = localtime((time_t *)&sb.st_mtime); /* NetBSD needs cast */
|
||||
(void)dgets(-1, NULL, 0); /* make sure buffer is at empty pos */
|
||||
while (dgets(fd, line, sizeof(line)-1) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user