[SCM] Samba Shared Repository - branch master updated -
2504d78c82097074a50095a9b9598876f4604a99
Volker Lendecke
vlendec at samba.org
Fri Dec 19 12:58:26 GMT 2008
The branch, master has been updated
via 2504d78c82097074a50095a9b9598876f4604a99 (commit)
from 2fe7d5936aea2ab74bf63997212f509e4a3ccee4 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 2504d78c82097074a50095a9b9598876f4604a99
Author: Volker Lendecke <vl at samba.org>
Date: Fri Nov 28 19:53:59 2008 +0100
Fix a "ignoring function call result" warning
-----------------------------------------------------------------------
Summary of changes:
source3/winbindd/winbindd.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 0ecf11d..e881ab4 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/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