git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e28c05
)
s3: Remove smbd_server_fd() from fake_sendfile
author
Volker Lendecke
<vl@samba.org>
Sun, 15 Aug 2010 06:50:26 +0000
(08:50 +0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 16 Aug 2010 20:39:23 +0000
(22:39 +0200)
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index f909fd696d2f9dd0ed544c946c410017067ce4f4..cf63c36a9d4bba6d5eeb0991d1c1b05135c47a3e 100644
(file)
--- a/
source3/smbd/reply.c
+++ b/
source3/smbd/reply.c
@@
-2810,7
+2810,8
@@
static ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos,
memset(buf + ret, '\0', cur_read - ret);
}
- if (write_data(smbd_server_fd(),buf,cur_read) != cur_read) {
+ if (write_data(fsp->conn->sconn->sock, buf, cur_read)
+ != cur_read) {
SAFE_FREE(buf);
return -1;
}