summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-02 18:11:32 +0100
committerVolker Lendecke <vl@samba.org>2012-02-02 20:35:28 +0100
commitda0a7b2fcc967d4d0f6cab3f1a93c875da9e5498 (patch)
treebb9f007c68cbef5384f6b14ae2dc20a842aeab65 /source3/modules
parentb1a544fc80d22050415ec5749ce5c5936772ecd8 (diff)
downloadsamba-da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498.tar.gz
samba-da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498.tar.bz2
samba-da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498.zip
s3-xattr_tdb: Fix listxattr
We have to tell the caller how many bytes we actually want
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_xattr_tdb.c2
1 files changed, 1 insertions, 1 deletions
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;