s3:util: use pread/pwrite in transfer_file
commitedf3b6146531bb3f15442bbb0cdad7b03be9650b
authorRalph Boehme <slow@samba.org>
Mon, 27 Apr 2015 10:16:16 +0000 (27 12:16 +0200)
committerRalph Böhme <slow@samba.org>
Tue, 23 Jun 2015 09:45:23 +0000 (23 11:45 +0200)
tree936c8a48a249607b2aa914e448c25052bfd9517a
parent8357dcb4697fba30591968e60a7fdb51aa29a4bf
s3:util: use pread/pwrite in transfer_file

read/write aren't overloaded in the streams VFS modules, using
pread/pwrite instead this makes it possible to use transfer_file() with
named streams.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11317

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/include/transfer_file.h
source3/lib/util_transfer_file.c
source3/smbd/vfs.c