mvo5 / libsmbclient-go

Go bindings for libsmbclient
MIT License
18 stars 11 forks source link

Disregard errno on success #7

Closed jibel closed 4 years ago

jibel commented 4 years ago

errno is not reset in libc calls and there is no guarantee that errno is zero on success. Rework error handling so both errno and the return value are considered to decide whether it is an error or an expected result. Fixes #1

Co-authored-by: Didier Roche didrocks@ubuntu.com