]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Always give error if flock is used with a system where it's not supported.
authorTimo Sirainen <tss@iki.fi>
Thu, 13 Nov 2003 16:05:36 +0000 (18:05 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 13 Nov 2003 16:05:36 +0000 (18:05 +0200)
The check was actually checking fcntl before..

--HG--
branch : HEAD

src/master/master-settings.c

index cdbb79e4fb37bcf98990f2ad24a077bf0b0f7d18..f0b0f2045a5db65a6c795040ab4101885fc9b439 100644 (file)
@@ -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;