changeset 1886:de4b5d7ec9b2 HEAD

Always give error if flock is used with a system where it's not supported. The check was actually checking fcntl before..
author Timo Sirainen <tss@iki.fi>
date Thu, 13 Nov 2003 18:05:36 +0200
parents f901e8b9d2e3
children 75d86ebb844e
files src/master/master-settings.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/master-settings.c	Thu Nov 13 17:51:22 2003 +0200
+++ b/src/master/master-settings.c	Thu Nov 13 18:05:36 2003 +0200
@@ -487,9 +487,8 @@
 	}
 
 #ifndef HAVE_FLOCK
-	if (fcntl_got && !dotlock_got && !flock_got) {
-		i_error("mbox_locks: Only flock selected, "
-			"and flock() isn't supported in this system");
+	if (flock_got) {
+		i_error("mbox_locks: flock is not supported in this system");
 		return FALSE;
 	}
 	flock_got = FALSE;