[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-4721-gbb16847
Jeremy Allison
jra at samba.org
Fri Dec 19 20:06:14 GMT 2008
The branch, v3-3-test has been updated
via bb168470676a610cd77cde196260611a49ddf5d1 (commit)
from 64656ac02cd9d46224f17f840b4e2c0a9ddf6ba9 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit bb168470676a610cd77cde196260611a49ddf5d1
Author: Volker Lendecke <vl at samba.org>
Date: Fri Dec 19 12:05:19 2008 -0800
Fix a "ignoring function call result" warning
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/winbindd.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/winbindd.c b/source/winbindd/winbindd.c
index b843ac0..bf2937c 100644
--- a/source/winbindd/winbindd.c
+++ b/source/winbindd/winbindd.c
@@ -729,6 +729,7 @@ static void new_connection(int listen_sock, bool privileged)
static void remove_client(struct winbindd_cli_state *state)
{
char c = 0;
+ int nwritten;
/* It's a dead client - hold a funeral */
@@ -737,7 +738,11 @@ static void remove_client(struct winbindd_cli_state *state)
}
/* tell client, we are closing ... */
- write(state->sock, &c, sizeof(c));
+ nwritten = write(state->sock, &c, sizeof(c));
+ if (nwritten == -1) {
+ DEBUG(2, ("final write to client failed: %s\n",
+ strerror(errno)));
+ }
/* Close socket */
--
Samba Shared Repository
More information about the samba-cvs
mailing list