summaryrefslogtreecommitdiff
path: root/mail/maildrop/files/patch-libs_maildrop_filelock.C
blob: 8356f0f9f1fe91b9753ec22a44c88be78446cb8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libs/maildrop/filelock.C.orig	2013-08-25 18:54:20 UTC
+++ libs/maildrop/filelock.C
@@ -63,7 +63,7 @@ int	flockrc;
 		// 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;
 		}