[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3296-gfc86d34

Jeremy Allison jra at samba.org
Fri Dec 19 20:06:02 GMT 2008


The branch, v3-2-test has been updated
       via  fc86d348a41bf276c1863a0012bad3d3774bc12b (commit)
      from  40c510097a43edd10f6b5cd376a2cf6eca1f7e8b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit fc86d348a41bf276c1863a0012bad3d3774bc12b
Author: Volker Lendecke <vl at samba.org>
Date:   Fri Dec 19 12:04:59 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 805ea0c..3edd76b 100644
--- a/source/winbindd/winbindd.c
+++ b/source/winbindd/winbindd.c
@@ -746,6 +746,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 */
 	
@@ -754,7 +755,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