]> git.neil.brown.name Git - history.git/commit
[PATCH] With size > XATTR_SIZE_MAX, getxattr(2) always returns E2BIG
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 00:49:57 +0000 (16:49 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 6 Feb 2004 00:49:57 +0000 (16:49 -0800)
commit82243d15c9ce5c1edbaf2f8dd1024d28c2d14619
tree20eb0c600e43c1901ca951608b96c4e561abcac8
parentdd382b3cdb99e0e4f754557df52d0300912c4c04
[PATCH] With size > XATTR_SIZE_MAX, getxattr(2) always returns E2BIG

From: Andreas Gruenbacher <agruen@suse.de>

The getxattr (listxattr) syscall returns E2BIG if the buffer passed to them
is bigger than XATTR_SIZE_MAX (XATTR_LIST_MAX), no matter what buffer size is
actually required.  Here is a fix.  It also removes the xattr_alloc and
xattr_free functions which are not of much use anymore.
fs/xattr.c