projects
/
linux-flexiantxendom0-3.2.10.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
620bde4
)
[PATCH] ACL version mismatch error code fix
author
Andrew Morton <akpm@osdl.org>
Mon, 12 Apr 2004 06:20:13 +0000
(23:20 -0700)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/fs/xattr_acl.c
b/fs/xattr_acl.c
index
f8fc213
..
789a255
100644
(file)
--- a/
fs/xattr_acl.c
+++ b/
fs/xattr_acl.c
@@
-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)