From c88cfcedf21c1c9dd6bbeb97c34a6fecbc329477 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Thu, 5 Dec 2024 17:09:39 -0800 Subject: [PATCH] Fix typo in Windows version of xp_lockfile() --- src/xpdev/filewrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xpdev/filewrap.c b/src/xpdev/filewrap.c index 3cd9ba8340..da2c5713e9 100644 --- a/src/xpdev/filewrap.c +++ b/src/xpdev/filewrap.c @@ -259,7 +259,7 @@ int xp_lockfile(int file, off_t offset, off_t size, bool block) (void)lseek(file, offset, SEEK_SET); do { i = _locking(file, block ? LK_LOCK : LK_NBLCK, (long)size); - } while(block && i != 0 && errno = EDEADLOCK); + } while(block && i != 0 && errno == EDEADLOCK); if(offset!=pos) (void)lseek(file, pos, SEEK_SET); return(i); -- GitLab