]> git.neil.brown.name Git - history.git/commit
[PATCH] getxattr error checking fix
authorAndrew Morton <akpm@osdl.org>
Mon, 9 Feb 2004 10:58:33 +0000 (02:58 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 9 Feb 2004 10:58:33 +0000 (02:58 -0800)
commit95baae3390157f753fcf07603bd8247095ccab38
tree495fd92ce1550ae18316dfa774896bf040caed04
parent4243eb72ae8bc57653c8c5b5ed217b9a309f77e6
[PATCH] getxattr error checking fix

From: Nathan Scott <nathans@sgi.com>,
      Andreas Gruenbacher <agruen@suse.de>

XFS regression tests tripped a couple of problems with the recent xattr fix.

When a size of 0 is passed in, the getxattr and listxattr syscalls return the
size that would be required for the value or list of names, without actually
returning the value.  The previous patch accidentally removed this test, and
so querying the required size broke.
fs/xattr.c