]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/exim_dbutil.c
Honour the -n for -bP config
[user/henk/code/exim.git] / src / src / exim_dbutil.c
index 262e39044321f4675658e134a3637f39bd0c4ceb..4dd143feac970f031744d89b3cc6bdb8dc13dbb5 100644 (file)
@@ -285,8 +285,9 @@ if (sigalrm_seen) errno = ETIMEDOUT;
 if (rc < 0)
   {
   printf("** Failed to get %s lock for %s: %s",
-    ((flags & O_RDONLY) != 0)? "read" : "write", buffer,
-    (errno == ETIMEDOUT)? "timed out" : strerror(errno));
+    flags & O_WRONLY ? "write" : "read",
+    buffer,
+    errno == ETIMEDOUT ? "timed out" : strerror(errno));
   (void)close(dbblock->lockfd);
   return NULL;
   }