nsswitch: Fix short writes in winbind_write_sock
authorVolker Lendecke <vl@samba.org>
Tue, 15 Oct 2013 08:23:10 +0000 (08:23 +0000)
committerAndreas Schneider <asn@samba.org>
Mon, 21 Oct 2013 15:52:35 +0000 (17:52 +0200)
commitc6909887c26d4e827633acd50b11cf08c6aee0f7
tree53cd69104ce0926b3224bade59fa77bc389c7a92
parent5ea154bf25b6269e5c8d3c30bed88defc785f4ae
nsswitch: Fix short writes in winbind_write_sock

We set the socket to nonblocking and don't handle EAGAIN right. We do
a poll anyway, so wait for writability, which should fix this.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10195
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
nsswitch/wb_common.c