From 10baee1330cb57d8766895d59ab8e872f1be8191 Mon Sep 17 00:00:00 2001 From: Sergei Kolobov Date: Tue, 26 Apr 2005 13:25:18 +0000 Subject: [PATCH] - Add patch to work around the problem where maildrop exits with "flock() failed" error when an attempting to route messages to /dev/null. Patch is submitted upstream. - Bump PORTREVISION PR: ports/80106 Submitted by: David Lay --- mail/maildrop/Makefile | 2 +- mail/maildrop/files/patch-filelock.C | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 mail/maildrop/files/patch-filelock.C diff --git a/mail/maildrop/Makefile b/mail/maildrop/Makefile index e9bb820b88dd..25de11834c73 100644 --- a/mail/maildrop/Makefile +++ b/mail/maildrop/Makefile @@ -17,7 +17,7 @@ PORTNAME= maildrop PORTVERSION= 1.8.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= courier diff --git a/mail/maildrop/files/patch-filelock.C b/mail/maildrop/files/patch-filelock.C new file mode 100644 index 000000000000..2ade3735cf9d --- /dev/null +++ b/mail/maildrop/files/patch-filelock.C @@ -0,0 +1,11 @@ +--- maildrop/filelock.C.orig Sat Apr 29 03:17:45 2000 ++++ maildrop/filelock.C Fri Apr 15 13:09:25 2005 +@@ -64,7 +64,7 @@ + // you're writing to a device file, you know what you're doing. + + if (fstat(fd, &stat_buf) >= 0 && ( +- S_ISREG(stat_buf.st_mode) || S_ISDIR(stat_buf.st_mode))) ++ S_ISCHR(stat_buf.st_mode) || S_ISBLK(stat_buf.st_mode))) + { + return; + }