mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
vfs_fruit: update rfork size in AppleDouble header
Update the AppleDouble entry with the new size when ftruncating a resource fork. Signed-off-by: Ralph Boehme <rb@sernet.de> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Sep 25 23:43:35 CEST 2014 on sn-devel-104
This commit is contained in:
parent
168191d9bf
commit
b6ec190e74
@ -2824,6 +2824,14 @@ static int fruit_ftruncate(struct vfs_handle_struct *handle,
|
||||
rc = SMB_VFS_NEXT_FTRUNCATE(
|
||||
handle, fsp,
|
||||
offset + ad_getentryoff(ad, ADEID_RFORK));
|
||||
if (rc != 0) {
|
||||
return -1;
|
||||
}
|
||||
ad_setentrylen(ad, ADEID_RFORK, offset);
|
||||
rc = ad_write(ad, NULL);
|
||||
if (rc != 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user