From da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 2 Feb 2012 18:11:32 +0100 Subject: [PATCH] s3-xattr_tdb: Fix listxattr We have to tell the caller how many bytes we actually want --- source3/modules/vfs_xattr_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index f00caa4ea7..1f3f20e499 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -426,7 +426,7 @@ static ssize_t xattr_tdb_listattr(struct db_context *db_ctx, if (len > size) { TALLOC_FREE(attribs); errno = ERANGE; - return -1; + return len; } len = 0; -- 2.34.1