From 4495ea7ca05bb1c68b2e08fe909fb93d928f8c4c Mon Sep 17 00:00:00 2001 From: Sean Estabrooks Date: Wed, 1 Oct 2025 14:11:55 -0400 Subject: [PATCH] Fix locking problem on Linux port As per the fcntl(2) manpage, EACCES can also be returned to indicate lock contention. This needs to be returned properly to DOS. --- src/dos/drive_local.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp index 11b671c575d..9a3fe7c39ad 100644 --- a/src/dos/drive_local.cpp +++ b/src/dos/drive_local.cpp @@ -2958,6 +2958,7 @@ bool LocalFile::LockFile(uint8_t mode, uint32_t pos, uint16_t size) { case EINTR: case ENOLCK: case EAGAIN: + case EACCES: DOS_SetError(0x21); break; case EBADF: