vfs_xattr_tdb: handle case of zero size.
authorUri Simchoni <uri@samba.org>
Thu, 13 Apr 2017 09:50:47 +0000 (12:50 +0300)
committerJeremy Allison <jra@samba.org>
Mon, 17 Apr 2017 22:43:20 +0000 (00:43 +0200)
commit4dfa2d6a0972847e3b21ddf05077e50ed72c4ea8
tree673495e10e46716b4d792d5f4700fef1514a73bb
parent5017dfeef24b8d568e0146c085f3f979d688acf2
vfs_xattr_tdb: handle case of zero size.

With getxattr(), passing a zero buffer size is a
way of obtaining actual xattr size.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12737

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_xattr_tdb.c