From 2a853c0cf7f52437d8488f02fadaba94385fcf5b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 13 Nov 2003 18:05:36 +0200 Subject: [PATCH] Always give error if flock is used with a system where it's not supported. The check was actually checking fcntl before.. --HG-- branch : HEAD --- src/master/master-settings.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/master/master-settings.c b/src/master/master-settings.c index cdbb79e4fb..f0b0f2045a 100644 --- a/src/master/master-settings.c +++ b/src/master/master-settings.c @@ -487,9 +487,8 @@ static int settings_verify(struct settings *set) } #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; -- 2.47.3