summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Alexander <wired@gentoo.org>2011-02-21 07:44:44 +0000
committerAlex Alexander <wired@gentoo.org>2011-02-21 07:44:44 +0000
commit47b3fae25338134f208ee94d5f010537ca03ec19 (patch)
treeed84339908edf43b7a3d80266e7bdde8a8db14cb /net-irc/znc/files
parentRemove old version. (diff)
downloadhistorical-47b3fae25338134f208ee94d5f010537ca03ec19.tar.gz
historical-47b3fae25338134f208ee94d5f010537ca03ec19.tar.bz2
historical-47b3fae25338134f208ee94d5f010537ca03ec19.zip
updated SRC_URI, removed old patches
Package-Manager: portage-2.2.0_alpha24/cvs/Linux x86_64
Diffstat (limited to 'net-irc/znc/files')
-rw-r--r--net-irc/znc/files/znc-0.090-null-pointer-dereference-fix.patch31
-rw-r--r--net-irc/znc/files/znc-0.092-dos-fix.patch89
2 files changed, 0 insertions, 120 deletions
diff --git a/net-irc/znc/files/znc-0.090-null-pointer-dereference-fix.patch b/net-irc/znc/files/znc-0.090-null-pointer-dereference-fix.patch
deleted file mode 100644
index c41e1fe9ed7b..000000000000
--- a/net-irc/znc/files/znc-0.090-null-pointer-dereference-fix.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- trunk/znc.cpp 2010/06/13 07:58:28 2025
-+++ trunk/znc.cpp 2010/06/13 17:14:52 2026
-@@ -1927,18 +1927,18 @@
- }
-
- for (CSockManager::const_iterator it = m_Manager.begin(); it != m_Manager.end(); ++it) {
-+ CUser *pUser = NULL;
- if ((*it)->GetSockName().Left(5) == "IRC::") {
-- CIRCSock *p = (CIRCSock *) *it;
-- ret[p->GetUser()->GetUserName()].first += p->GetBytesRead();
-- ret[p->GetUser()->GetUserName()].second += p->GetBytesWritten();
-- uiUsers_in += p->GetBytesRead();
-- uiUsers_out += p->GetBytesWritten();
-+ pUser = ((CIRCSock *) *it)->GetUser();
- } else if ((*it)->GetSockName().Left(5) == "USR::") {
-- CClient *p = (CClient *) *it;
-- ret[p->GetUser()->GetUserName()].first += p->GetBytesRead();
-- ret[p->GetUser()->GetUserName()].second += p->GetBytesWritten();
-- uiUsers_in += p->GetBytesRead();
-- uiUsers_out += p->GetBytesWritten();
-+ pUser = ((CClient*) *it)->GetUser();
-+ }
-+
-+ if (pUser) {
-+ ret[pUser->GetUserName()].first += (*it)->GetBytesRead();
-+ ret[pUser->GetUserName()].second += (*it)->GetBytesWritten();
-+ uiUsers_in += (*it)->GetBytesRead();
-+ uiUsers_out += (*it)->GetBytesWritten();
- } else {
- uiZNC_in += (*it)->GetBytesRead();
- uiZNC_out += (*it)->GetBytesWritten();
diff --git a/net-irc/znc/files/znc-0.092-dos-fix.patch b/net-irc/znc/files/znc-0.092-dos-fix.patch
deleted file mode 100644
index a2688f4b1cfc..000000000000
--- a/net-irc/znc/files/znc-0.092-dos-fix.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-diff -u -r znc-0.092-orig//Client.cpp znc-0.092/Client.cpp
---- znc-0.092-orig//Client.cpp 2010-08-15 01:29:28.972436649 +0300
-+++ znc-0.092/Client.cpp 2010-08-15 01:30:34.721440283 +0300
-@@ -185,7 +185,10 @@
- // won't answer the ping (=no server connected) -> PONG back.
- // else: It's the server's job to send a PONG.
- if (sTarget.Equals("irc.znc.in") || !GetIRCSock()) {
-- PutClient("PONG " + sLine.substr(5));
-+ if (sLine.length() >= 5)
-+ PutClient("PONG " + sLine.substr(5));
-+ else
-+ PutClient(":irc.znc.in PONG irc.znc.in");
- return;
- }
- } else if (sCommand.Equals("PONG")) {
-diff -u -r znc-0.092-orig//IRCSock.cpp znc-0.092/IRCSock.cpp
---- znc-0.092-orig//IRCSock.cpp 2010-08-15 01:29:28.972436649 +0300
-+++ znc-0.092/IRCSock.cpp 2010-08-15 01:31:03.345456528 +0300
-@@ -87,7 +87,7 @@
- return;
- } else if (sLine.Equals("ERROR ", false, 6)) {
- //ERROR :Closing Link: nick[24.24.24.24] (Excess Flood)
-- CString sError(sLine.substr(7));
-+ CString sError(sLine.substr(6));
-
- if (sError.Left(1) == ":") {
- sError.LeftChomp();
-diff -u -r znc-0.092-orig//modules/adminlog.cpp znc-0.092/modules/adminlog.cpp
---- znc-0.092-orig//modules/adminlog.cpp 2010-08-15 01:29:28.970434898 +0300
-+++ znc-0.092/modules/adminlog.cpp 2010-08-15 01:31:13.639445703 +0300
-@@ -52,7 +52,7 @@
- if (sLine.Equals("ERROR ", false, 6)) {
- //ERROR :Closing Link: nick[24.24.24.24] (Excess Flood)
- //ERROR :Closing Link: nick[24.24.24.24] Killer (Local kill by Killer (reason))
-- CString sError(sLine.substr(7));
-+ CString sError(sLine.substr(6));
- if (sError.Left(1) == ":")
- sError.LeftChomp();
- Log("[" + m_pUser->GetUserName() + "] disconnected from IRC: " +
-diff -u -r znc-0.092-orig//modules/away.cpp znc-0.092/modules/away.cpp
---- znc-0.092-orig//modules/away.cpp 2010-08-15 01:29:28.970434898 +0300
-+++ znc-0.092/modules/away.cpp 2010-08-15 01:31:47.479451226 +0300
-@@ -390,7 +390,7 @@
- CBlowfish c(m_sPassword, BF_DECRYPT);
- sBuffer = c.Crypt(sFile);
-
-- if (sBuffer.substr(0, strlen(CRYPT_VERIFICATION_TOKEN)) != CRYPT_VERIFICATION_TOKEN)
-+ if (sBuffer.Left(strlen(CRYPT_VERIFICATION_TOKEN)) != CRYPT_VERIFICATION_TOKEN)
- {
- // failed to decode :(
- PutModule("Unable to decode Encrypted messages");
-diff -u -r znc-0.092-orig//modules/extra/email.cpp znc-0.092/modules/extra/email.cpp
---- znc-0.092-orig//modules/extra/email.cpp 2010-08-15 01:29:28.971434361 +0300
-+++ znc-0.092/modules/extra/email.cpp 2010-08-15 01:32:57.262438966 +0300
-@@ -154,7 +154,7 @@
-
- virtual void ReadLine(const CS_STRING & sLine)
- {
-- if (sLine.substr(0, 5) == "From ")
-+ if (sLine.Left(5) == "From ")
- {
- if (!m_sMailBuffer.empty())
- {
-@@ -168,7 +168,7 @@
- void ProcessMail()
- {
- EmailST tmp;
-- tmp.sUidl = (char *)CMD5(m_sMailBuffer.substr(0, 255));
-+ tmp.sUidl = (char *)CMD5(m_sMailBuffer.Left(255));
- VCString vsLines;
- VCString::iterator it;
-
-@@ -200,15 +200,7 @@
-
- void CEmail::OnModCommand(const CString& sCommand)
- {
-- CString::size_type iPos = sCommand.find(" ");
-- CString sCom, sArgs;
-- if (iPos == CString::npos)
-- sCom = sCommand;
-- else
-- {
-- sCom = sCommand.substr(0, iPos);
-- sArgs = sCommand.substr(iPos + 1, CString::npos);
-- }
-+ CString sCom = sCommand.Token(0);
-
- if (sCom == "timers")
- {