nsswitch: Fix short writes in winbind_write_sock
authorVolker Lendecke <vl@samba.org>
Tue, 15 Oct 2013 08:23:10 +0000 (08:23 +0000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Oct 2013 11:50:34 +0000 (12:50 +0100)
commit67840df91d7370bd5c642635aa7731ccb343fd7b
treebbc09c15a40be70ae9b7aa90d21132e935300359
parent05c955383af76dddf45221933922e5c2dd6b5aaf
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>
(cherry picked from commit c6909887c26d4e827633acd50b11cf08c6aee0f7)
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Mon Oct 28 12:50:37 CET 2013 on sn-devel-104
nsswitch/wb_common.c