ymnk / jsch-agent-proxy

Other
70 stars 41 forks source link

Do not hardcode sockaddr.size(); make JNA error messages more useful #12

Closed charles-dyfis-net closed 11 years ago

charles-dyfis-net commented 11 years ago

Not all platforms (or even all versions of Linux) have the same definition of sockaddr_t.

Use Structure.size() to get the correct value.

charles-dyfis-net commented 11 years ago

I just upgraded my workstation to Ubuntu 13.04 (raring), and had to apply this patch before JNA-based sockets would work.

ymnk commented 11 years ago

It has been fixed, https://github.com/ymnk/jsch-agent-proxy/commit/a243635d7a0126f7be36a41f9d3674a4b49342c3.