Merge pull request #1586 from rliebig/dev-liebig-syscall-read-eisdir

return EISDIR in case ql_syscall_read is attempted on directory
This commit is contained in:
xwings
2025-10-30 17:21:49 +08:00
committed by GitHub
+2
View File
@@ -415,6 +415,8 @@ def ql_syscall_read(ql: Qiling, fd: int, buf: int, length: int):
try:
data = f.read(length)
except IsADirectoryError:
return -EISDIR
except ConnectionError:
ql.log.debug('read failed due to a connection error')
return -EIO