diff options
Diffstat (limited to 'security/klamav')
-rw-r--r-- | security/klamav/Makefile | 2 | ||||
-rw-r--r-- | security/klamav/files/patch-src__klamd__scanner.c | 11 | ||||
-rw-r--r-- | security/klamav/files/patch-src__klamd__scanner.h | 9 |
3 files changed, 21 insertions, 1 deletions
diff --git a/security/klamav/Makefile b/security/klamav/Makefile index bbff033cdf96..fe44f76f0bf7 100644 --- a/security/klamav/Makefile +++ b/security/klamav/Makefile @@ -7,7 +7,7 @@ PORTNAME= klamav PORTVERSION= 0.41 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= klamav diff --git a/security/klamav/files/patch-src__klamd__scanner.c b/security/klamav/files/patch-src__klamd__scanner.c new file mode 100644 index 000000000000..24c1360951cb --- /dev/null +++ b/security/klamav/files/patch-src__klamd__scanner.c @@ -0,0 +1,11 @@ +--- src/klamd/scanner.c.orig 2007-12-19 08:33:50.000000000 -0200 ++++ src/klamd/scanner.c 2007-12-19 08:36:04.000000000 -0200 +@@ -396,7 +396,7 @@ + + logg("*Accepted connection on port %d, fd %d\n", port, acceptd); + +- if ((tmpname = cli_gentempdesc(NULL, &tmpd)) == NULL) { ++ if (cli_gentempfd(NULL, &tmpname, &tmpd) ) { + shutdown(sockfd, 2); + close(sockfd); + close(acceptd); diff --git a/security/klamav/files/patch-src__klamd__scanner.h b/security/klamav/files/patch-src__klamd__scanner.h new file mode 100644 index 000000000000..18572cd1d383 --- /dev/null +++ b/security/klamav/files/patch-src__klamd__scanner.h @@ -0,0 +1,9 @@ +--- src/klamd/scanner.h.orig 2007-12-19 08:34:32.000000000 -0200 ++++ src/klamd/scanner.h 2007-12-19 08:34:52.000000000 -0200 +@@ -33,4 +33,6 @@ + + int checksymlink(const char *path); + ++extern int cli_gentempfd(const char *dir, char **name, int *fd); ++ + #endif |