[PATCH] ACL version mismatch error code fix
authorAndrew Morton <akpm@osdl.org>
Mon, 12 Apr 2004 06:20:13 +0000 (23:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 12 Apr 2004 06:20:13 +0000 (23:20 -0700)
From: Andreas Gruenbacher <agruen@suse.de>

Return EOPNOTSUPP rather than EINVAL when we discover an ACL version
mismatch.

fs/xattr_acl.c

index f8fc213..789a255 100644 (file)
@@ -29,7 +29,7 @@ posix_acl_from_xattr(const void *value, size_t size)
        if (size < sizeof(posix_acl_xattr_header))
                 return ERR_PTR(-EINVAL);
        if (header->a_version != cpu_to_le32(POSIX_ACL_XATTR_VERSION))
-               return ERR_PTR(-EINVAL);
+               return ERR_PTR(-EOPNOTSUPP);
 
        count = posix_acl_xattr_count(size);
        if (count < 0)