Resolve "Errno 115 returned on successful completion for several system calls"
requested to merge 78-errno-115-returned-on-successful-completion-for-several-system-calls into master
Closes #78 (closed)
This fix contains three parts:
- errno 115 was leaked during initialization of the client in
init_ld_environment_(). However, the value on its own is irrelevant to this issue as all internalerrnovariable changes should be kept internal as it is the case during each syscall intercept hook. Therefore, the originalerrnovariable is restored after the initialization finishes. - lseek() tests revealed that whence
SEEK_SETwas not handled correctly. It should not allow negative offsets. - All FIXME TODOs in the testing code have been removed including testing on the
errnoin a successful case because it is undefined.