diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-02 18:11:32 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-02-02 20:35:28 +0100 |
commit | da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498 (patch) | |
tree | bb9f007c68cbef5384f6b14ae2dc20a842aeab65 /source3/modules/vfs_xattr_tdb.c | |
parent | b1a544fc80d22050415ec5749ce5c5936772ecd8 (diff) | |
download | samba-da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498.tar.gz |
s3-xattr_tdb: Fix listxattr
We have to tell the caller how many bytes we actually want
Diffstat (limited to 'source3/modules/vfs_xattr_tdb.c')
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index f00caa4ea7b..1f3f20e4993 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; |