adouble: use runtime size when writing out AppleDouble header
authorRalph Boehme <slow@samba.org>
Thu, 4 Jul 2019 09:37:10 +0000 (11:37 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 12 Jul 2019 21:31:29 +0000 (21:31 +0000)
commit1c464232f8848e6d3a28f49f7721f4ac076c5645
tree01dd8d89acd71e762a345874335fe7c3a2a05105
parent5e52d9ebf0638ce40130dc72c8225c5b7e25ee22
adouble: use runtime size when writing out AppleDouble header

We're calling SMB_VFS_NEXT_PWRITE() to write out the AppleDouble header
data. Until now this header always had a fixed sizeof AD_DATASZ_DOT_UND bytes,
but a subsequent commit will change that. Use the correct size which is the
offset of the begining of the resource fork data.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/adouble.c