Skip to content

Commit

Permalink
Fix wrong regreturn for lseek
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Nov 9, 2021
1 parent d1db42e commit ac7c9f6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions qiling/os/posix/syscall/unistd.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ def ql_syscall_lseek(ql: Qiling, fd: int, offset: int, lseek_origin: int):
regreturn = ql.os.fd[fd].lseek(offset, lseek_origin)
except OSError:
regreturn = -1
else:
regreturn = 0
else:
regreturn = -EBADF

Expand Down

0 comments on commit ac7c9f6

Please # to comment.