summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 3509294e8e..d635078f37 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -968,7 +968,7 @@ static ssize_t sys_write_fn(void *file, void *buf, size_t len)
{
int *fd = (int *)file;
- return sys_read(*fd, buf, len);
+ return sys_write(*fd, buf, len);
}
SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n)