vfs_fruit: handling of ftruncate() on AFP_AfpInfo stream
authorRalph Boehme <slow@samba.org>
Mon, 14 Dec 2015 15:09:54 +0000 (16:09 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 21 Dec 2015 22:21:17 +0000 (23:21 +0100)
commit4024153894a07b7b1115dbe1699cba94fee13f23
treeb69736699ea9ef65d05341362868c34eccd7f978
parent6f8c188dfc81a6d22bd54f248327b787e0b48f09
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>
source3/modules/vfs_fruit.c