diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-12-10 01:49:31 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-01-11 10:58:07 -0500 |
commit | 6f81c1157468dd0a7377249c44ae83a7fe998bc9 (patch) | |
tree | 3d7bcef08c3789b7db9704b4e31da75b0599803c /fs/9p/acl.c | |
parent | 009ca3897ea8313b4ed4da964a2f31ecf5a0624d (diff) |
fs/9p: Fix the return error on default acl removal
If we don't have default ACL, then trying to remove
default acl on a file should return 0.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Diffstat (limited to 'fs/9p/acl.c')
-rw-r--r-- | fs/9p/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/acl.c b/fs/9p/acl.c index c9da2640f6f1..02a2cf616318 100644 --- a/fs/9p/acl.c +++ b/fs/9p/acl.c | |||
@@ -365,7 +365,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name, | |||
365 | case ACL_TYPE_DEFAULT: | 365 | case ACL_TYPE_DEFAULT: |
366 | name = POSIX_ACL_XATTR_DEFAULT; | 366 | name = POSIX_ACL_XATTR_DEFAULT; |
367 | if (!S_ISDIR(inode->i_mode)) { | 367 | if (!S_ISDIR(inode->i_mode)) { |
368 | retval = -EINVAL; | 368 | retval = acl ? -EINVAL : 0; |
369 | goto err_out; | 369 | goto err_out; |
370 | } | 370 | } |
371 | break; | 371 | break; |