1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/mail/maildrop/files/patch-filelock.C
Sergei Kolobov 10baee1330 - 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 <dsl@webize.com.au>
2005-04-26 13:25:18 +00:00

12 lines
372 B
C

--- 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;
}