The Samba-Bugzilla – Attachment 1177 Details for
Bug 2655
"Resource temporary unavailable" message on stdout when listing directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix this problem
smbclient-socketsread.patch (text/plain), 1.45 KB, created by
sergei
on 2005-04-26 18:30:11 UTC
(
hide
)
Description:
patch to fix this problem
Filename:
MIME Type:
Creator:
sergei
Created:
2005-04-26 18:30:11 UTC
Size:
1.45 KB
patch
obsolete
>--- source/lib/util_sock.c.orig Sat Feb 26 00:59:32 2005 >+++ source/lib/util_sock.c Wed Apr 27 02:20:29 2005 >@@ -264,15 +264,16 @@ > DEBUG(5,("read_socket_with_timeout: blocking read. EOF from client.\n")); > smb_read_error = READ_EOF; > return -1; > } > >- if (readret == -1) { >+ if (readret == -1 && errno != EAGAIN) { > DEBUG(0,("read_socket_with_timeout: read error = %s.\n", strerror(errno) )); > smb_read_error = READ_ERROR; > return -1; > } >+ if (readret > 0) > nread += readret; > } > return((ssize_t)nread); > } > >@@ -348,15 +349,16 @@ > 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) { >+ if (ret == -1 && errno != EAGAIN) { > DEBUG(0,("read_data: read failure for %d. Error = %s\n", (int)(N - total), strerror(errno) )); > smb_read_error = READ_ERROR; > return -1; > } >+ if (ret > 0) > total += ret; > } > return (ssize_t)total; > } > >@@ -378,15 +380,16 @@ > DEBUG(10,("read_socket_data: recv of %d returned 0. Error = %s\n", (int)(N - total), strerror(errno) )); > smb_read_error = READ_EOF; > return 0; > } > >- if (ret == -1) { >+ if (ret == -1 && errno != EAGAIN) { > DEBUG(0,("read_socket_data: recv failure for %d. Error = %s\n", (int)(N - total), strerror(errno) )); > smb_read_error = READ_ERROR; > return -1; > } >+ if (ret > 0) > total += ret; > } > return (ssize_t)total; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2655
: 1177