diff options
author | Michael Adam <obnox@samba.org> | 2008-01-11 01:26:54 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-11 01:27:05 +0100 |
commit | fef9cf00e1e110ff5872f1c368d080fe4f7939d6 (patch) | |
tree | 9b6bf79a5fa28b76c37af56fcc0c5ed2e7bf1884 /source3/modules/vfs_default.c | |
parent | 14d45bedfa844dfbf646e792d1cf84544997de25 (diff) | |
download | samba-fef9cf00e1e110ff5872f1c368d080fe4f7939d6.tar.gz samba-fef9cf00e1e110ff5872f1c368d080fe4f7939d6.tar.xz samba-fef9cf00e1e110ff5872f1c368d080fe4f7939d6.zip |
Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().
Michael
(This used to be commit 3958abffaf2866c69ad9e13ec345364fde5c78bb)
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r-- | source3/modules/vfs_default.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 3a0ed0bebd9..e21136ccee9 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -350,15 +350,14 @@ static ssize_t vfswrap_sendfile(vfs_handle_struct *handle, int tofd, files_struc static ssize_t vfswrap_recvfile(vfs_handle_struct *handle, int fromfd, - files_struct *fsp, - int tofd, + files_struct *tofsp, SMB_OFF_T offset, size_t n) { ssize_t result; START_PROFILE_BYTES(syscall_recvfile, n); - result = sys_recvfile(fromfd, tofd, offset, n); + result = sys_recvfile(fromfd, tofsp->fh->fd, offset, n); END_PROFILE(syscall_recvfile); return result; } |