diff options
author | Anders Nordby <anders@FreeBSD.org> | 2005-03-20 21:35:13 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2005-03-20 21:35:13 +0000 |
commit | 6e86014633f5c824341d88e9d116988c2e059e4d (patch) | |
tree | 7456e54690c8e401bc149de74e3c7a38033d5553 /mail/smtptrapd/files/patch-smtptrapd.c | |
parent | Fix build for 4.x. (diff) |
Add smtptrapd, a tool/trap to keep spammers who try to abuse MX with the
highest PRI away.
Notes
Notes:
svn path=/head/; revision=131789
Diffstat (limited to 'mail/smtptrapd/files/patch-smtptrapd.c')
-rw-r--r-- | mail/smtptrapd/files/patch-smtptrapd.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/smtptrapd/files/patch-smtptrapd.c b/mail/smtptrapd/files/patch-smtptrapd.c new file mode 100644 index 000000000000..0ba2820481db --- /dev/null +++ b/mail/smtptrapd/files/patch-smtptrapd.c @@ -0,0 +1,25 @@ +--- smtptrapd.c.orig Sun Mar 20 00:01:06 2005 ++++ smtptrapd.c Sun Mar 20 00:01:36 2005 +@@ -27,9 +27,9 @@ + #include <sys/time.h> + #include <sys/types.h> + #include <unistd.h> ++#include <netinet/in.h> + #include <arpa/inet.h> + #include <sys/socket.h> +-#include <netinet/in.h> + #include <errno.h> + #include <string.h> + #include <sysexits.h> +@@ -491,7 +491,11 @@ + /* background the process */ + if (fork()) exit(0); + if (fork()) exit(0); ++#ifdef __FreeBSD__ ++ setpgrp(0, 0); ++#else + setpgrp(); ++#endif + + openlog("smtptrapd", LOG_PID, LOG_MAIL); + |