OS-3269 ltp getsockopt returns wrong errno