SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
41
net/ngircd/patches/patch-src_ngircd_conf_c
Normal file
41
net/ngircd/patches/patch-src_ngircd_conf_c
Normal file
|
@ -0,0 +1,41 @@
|
|||
Index: src/ngircd/conf.c
|
||||
--- src/ngircd/conf.c.orig
|
||||
+++ src/ngircd/conf.c
|
||||
@@ -388,7 +388,7 @@ Conf_Test( void )
|
||||
printf(" MaxConnectionsIP = %d\n", Conf_MaxConnectionsIP);
|
||||
printf(" MaxJoins = %d\n", Conf_MaxJoins > 0 ? Conf_MaxJoins : -1);
|
||||
printf(" MaxNickLength = %u\n", Conf_MaxNickLength - 1);
|
||||
- printf(" MaxPenaltyTime = %ld\n", (long)Conf_MaxPenaltyTime);
|
||||
+ printf(" MaxPenaltyTime = %lld\n", (long long)Conf_MaxPenaltyTime);
|
||||
printf(" MaxListSize = %d\n", Conf_MaxListSize);
|
||||
printf(" PingTimeout = %d\n", Conf_PingTimeout);
|
||||
printf(" PongTimeout = %d\n", Conf_PongTimeout);
|
||||
@@ -758,7 +758,7 @@ Set_Defaults(bool InitServers)
|
||||
strlcat(Conf_HelpFile, HELP_FILE, sizeof(Conf_HelpFile));
|
||||
strcpy(Conf_ServerPwd, "");
|
||||
strlcpy(Conf_PidFile, PID_FILE, sizeof(Conf_PidFile));
|
||||
- Conf_UID = Conf_GID = 0;
|
||||
+ Conf_UID = Conf_GID = 703; /* _ngircd */
|
||||
|
||||
/* Limits */
|
||||
Conf_ConnectRetry = 60;
|
||||
@@ -1506,7 +1506,7 @@ Handle_LIMITS(const char *File, int Line, char *Var, c
|
||||
return;
|
||||
}
|
||||
if (strcasecmp(Var, "MaxPenaltyTime") == 0) {
|
||||
- Conf_MaxPenaltyTime = atol(Arg);
|
||||
+ Conf_MaxPenaltyTime = atoll(Arg);
|
||||
if (Conf_MaxPenaltyTime < -1)
|
||||
Conf_MaxPenaltyTime = -1; /* "unlimited" */
|
||||
return;
|
||||
@@ -2122,8 +2122,8 @@ Validate_Config(bool Configtest, bool Rehash)
|
||||
|
||||
if (Conf_MaxPenaltyTime != -1)
|
||||
Config_Error(LOG_WARNING,
|
||||
- "Maximum penalty increase ('MaxPenaltyTime') is set to %ld, this is not recommended!",
|
||||
- Conf_MaxPenaltyTime);
|
||||
+ "Maximum penalty increase ('MaxPenaltyTime') is set to %lld, this is not recommended!",
|
||||
+ (long long)Conf_MaxPenaltyTime);
|
||||
|
||||
#ifdef DEBUG
|
||||
servers = servers_once = 0;
|
Loading…
Add table
Add a link
Reference in a new issue