vfs_fruit: handling of ftruncate() on AFP_AfpInfo stream
commit642b62b755f9f023438e4b8d3b0cac66a81b21b1
authorRalph Boehme <slow@samba.org>
Mon, 14 Dec 2015 15:09:54 +0000 (14 16:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Jan 2016 09:07:17 +0000 (6 10:07 +0100)
tree4e91c66e34f42b647fcdade01c0139fbc57be60e
parenta4e06390ab61ad30e8305dfd6097556304e471cb
vfs_fruit: handling of ftruncate() on AFP_AfpInfo stream

With help of some torture tests I verified the following behaviour of OS
X SMB server:

* ftruncate AFP_AfpInfo stream > 60 bytes results in an error
  NT_STATUS_ALLOTTED_SPACE_EXCEEDED

* ftruncate AFP_AfpInfo stream <=60 returns success but has no effect

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 4024153894a07b7b1115dbe1699cba94fee13f23)
source3/modules/vfs_fruit.c