Skip to content

Commit 4495ea7

Browse files
committed
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.
1 parent 41391e2 commit 4495ea7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dos/drive_local.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2958,6 +2958,7 @@ bool LocalFile::LockFile(uint8_t mode, uint32_t pos, uint16_t size) {
29582958
case EINTR:
29592959
case ENOLCK:
29602960
case EAGAIN:
2961+
case EACCES:
29612962
DOS_SetError(0x21);
29622963
break;
29632964
case EBADF:

0 commit comments

Comments
 (0)