Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 75863 Details for
Bug 117268
dansguardian-2.9.3.1_alpha.ebuild don't have kaspersky option
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for kaspersky plugins
kaspersky.patch (text/plain), 1.56 KB, created by
Cahya
on 2005-12-31 05:29:02 UTC
(
hide
)
Description:
patch for kaspersky plugins
Filename:
MIME Type:
Creator:
Cahya
Created:
2005-12-31 05:29:02 UTC
Size:
1.56 KB
patch
obsolete
>diff -Naur dansguardian-2.9.3.2/src/contentscanners/kavdscan.cpp dansguardian-2.9.3.2-new/src/contentscanners/kavdscan.cpp >--- dansguardian-2.9.3.2/src/contentscanners/kavdscan.cpp 2005-11-30 16:31:20.000000000 +0100 >+++ dansguardian-2.9.3.2-new/src/contentscanners/kavdscan.cpp 2005-12-31 01:16:01.110347750 +0100 >@@ -153,22 +153,43 @@ > return DGCS_SCANERROR; > } > String reply = buff; >- delete[]buff; >- reply.removeWhiteSpace(); > #ifdef DGDEBUG > std::cout << "Got from kavdscan:" << reply << std::endl; > #endif >- stripedsocks.close(); > if (reply[0] == '2') { // clean > #ifdef DGDEBUG > std::cerr << "kavdscan - clean" << std::endl; > #endif >+ delete[]buff; >+ stripedsocks.close(); > return DGCS_CLEAN; > } > if (reply.startsWith("322")) { // infected >- lastvirusname = reply.after(" ").before(" "); >+ while(reply[0] != '2' && rc != 0) { >+ reply.removeWhiteSpace(); >+ lastvirusname = lastvirusname + " " + reply.after("322-").before(" "); >+ try { >+ rc = stripedsocks.getLine(buff, 4096, o.content_scanner_timeout); >+ } >+ catch(exception & e) { >+ delete[]buff; >+ stripedsocks.close(); >+ syslog(LOG_ERR, "%s", "Error reading kavdscan socket"); >+ return DGCS_SCANERROR; >+ } >+ reply = buff; >+#ifdef DGDEBUG >+ std::cout << "Got from kavdscan:" << reply << std::endl; >+#endif >+ } >+ std::cout << "lastvirusname: " << lastvirusname << std::endl; >+ delete[]buff; >+ stripedsocks.close(); > // format: 322 nastyvirus blah >+ return DGCS_INFECTED; > } >+ delete[]buff; >+ stripedsocks.close(); > // must be an error then > lastmessage = reply; > return DGCS_SCANERROR;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 117268
:
75862
| 75863