mirror of
https://github.com/samba-team/samba.git
synced 2025-11-25 00:23:52 +03:00
r1766: we do not have smb_read_error in samba4
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
07e3d2c4cd
commit
1c3d52cea4
@@ -271,8 +271,6 @@ ssize_t read_data_until(int fd,char *buffer,size_t N,
|
||||
ssize_t ret;
|
||||
size_t total=0;
|
||||
|
||||
smb_read_error = 0;
|
||||
|
||||
while (total < N) {
|
||||
|
||||
if (endtime != NULL) {
|
||||
@@ -295,13 +293,11 @@ ssize_t read_data_until(int fd,char *buffer,size_t N,
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user