diff options
Diffstat (limited to 'mail/spamguard/files/patch-functions.c')
-rw-r--r-- | mail/spamguard/files/patch-functions.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mail/spamguard/files/patch-functions.c b/mail/spamguard/files/patch-functions.c new file mode 100644 index 000000000000..fe7c4ded72bc --- /dev/null +++ b/mail/spamguard/files/patch-functions.c @@ -0,0 +1,31 @@ +--- functions.c.orig 2008-01-21 15:41:05 UTC ++++ functions.c +@@ -10,16 +10,9 @@ + #include "wildmat.h" + #include "hash.h" + +-extern char mail_command[VALSIZE]; +-extern char makemap_command[VALSIZE]; +-extern char sysadmin[VALSIZE]; +-extern char statfile[VALSIZE]; +-extern char badmailfile[VALSIZE]; ++maddr *spammer_hash[MAXADDR]; ++iaddr *iaddrlist; + +-extern int wcnt; +-extern int bcnt; +-extern int pcnt; +- + extern int w; + extern int b; + extern int p; +@@ -107,7 +100,8 @@ send_notify_mail(char *n, char *sender, char *spam_typ + return errno; + } + +- if ((bytes = write(fd, n, strlen(n))) < bytes) { ++ bytes = strlen(n); ++ if (write(fd, n, bytes) < bytes) { + fprintf(stderr, "Couldn't write to temporary file"); + return errno; + } |