diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-02-18 02:00:30 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-02-18 02:00:30 +0000 |
commit | 47846c1bfe60aa6eddfa19e35b094e0b07a44bd5 (patch) | |
tree | 2e17fe64df3889753931aeb50934dfe2d8d2fcb3 /mail/p3scan/files/patch-scanner_trophie.c | |
parent | Don't replace the hardcoded optimization with ${CFLAGS}. It can cause (diff) |
mail/p3scan is a fork of mail/pop3vscan, a transparent POP3 virusscanner
P3Scan is a transparent POP3-Proxy with virus-scanning
capabilities. This means that all your POP3-Clients in the
Network can't fetch mails from the internet without that
P3Scan have scanned it. If a virus has been found the mail
is replaced with a notification and the original (infeceted)
version is stored on the harddisc. Transparent means, that
neither the client nor any of the used POP3-servers has to
be configured.
This port is based on mail/pop3vscan, but the development
for that port seems to have ceased.
WWW: http://p3scan.sourceforge.net/
Notes
Notes:
svn path=/head/; revision=101280
Diffstat (limited to 'mail/p3scan/files/patch-scanner_trophie.c')
-rw-r--r-- | mail/p3scan/files/patch-scanner_trophie.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/p3scan/files/patch-scanner_trophie.c b/mail/p3scan/files/patch-scanner_trophie.c new file mode 100644 index 000000000000..ca156fe528bc --- /dev/null +++ b/mail/p3scan/files/patch-scanner_trophie.c @@ -0,0 +1,24 @@ +--- scanner_trophie.c.orig Thu Dec 4 02:57:56 2003 ++++ scanner_trophie.c Wed Feb 18 12:51:22 2004 +@@ -37,11 +37,11 @@ + #include <sys/wait.h> + #include <sys/stat.h> + #include <errno.h> +-#include <malloc.h> + #include <sys/un.h> + #include <sys/socket.h> + #include <stdarg.h> + #include <ctype.h> ++#include <netinet/in.h> + + #include "p3scan.h" + +@@ -68,7 +68,7 @@ + if (trophie_fd!=-1 && connected==-1){ + do_log(LOG_DEBUG, "Trying to connect to socket"); + if (connect(trophie_fd, (struct sockaddr *)(&trophie_socket), +- sizeof(trophie_socket.sun_family) + strlen(config->virusscanner)) >= 0){ ++ SUN_LEN(&trophie_socket)) >= 0){ + connected=1; + do_log(LOG_DEBUG, "trophie_socket_connect connected"); + return 0; |