svn commit: samba r1766 - branches/SAMBA_4_0/source/lib

idra at samba.org idra at samba.org
Thu Aug 12 07:13:45 GMT 2004


Author: idra
Date: 2004-08-12 07:13:44 +0000 (Thu, 12 Aug 2004)
New Revision: 1766
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1766&nolog=1
Log:

we do not have smb_read_error in samba4


Modified:
   branches/SAMBA_4_0/source/lib/util_sock.c

Changeset:
Modified: branches/SAMBA_4_0/source/lib/util_sock.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util_sock.c	2004-08-12 07:09:09 UTC (rev 1765)
+++ branches/SAMBA_4_0/source/lib/util_sock.c	2004-08-12 07:13:44 UTC (rev 1766)
@@ -271,8 +271,6 @@
 	ssize_t ret;
 	size_t total=0;  
  
-	smb_read_error = 0;
-
 	while (total < N) {
 
 		if (endtime != NULL) {
@@ -295,13 +293,11 @@
 
 		if (ret == 0) {
 			DEBUG(10,("read_data: read of %d returned 0. Error = %s\n", (int)(N - total), strerror(errno) ));
-			smb_read_error = READ_EOF;
 			return 0;
 		}
 
 		if (ret == -1) {
 			DEBUG(0,("read_data: read failure for %d. Error = %s\n", (int)(N - total), strerror(errno) ));
-			smb_read_error = READ_ERROR;
 			return -1;
 		}
 		total += ret;



More information about the samba-cvs mailing list