Skip to content

Commit

Permalink
fs/9p: Fix the return error on default acl removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Jan 11, 2011
1 parent 009ca38 commit 6f81c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/9p/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name,
case ACL_TYPE_DEFAULT:
name = POSIX_ACL_XATTR_DEFAULT;
if (!S_ISDIR(inode->i_mode)) {
retval = -EINVAL;
retval = acl ? -EINVAL : 0;
goto err_out;
}
break;
Expand Down

0 comments on commit 6f81c11

Please sign in to comment.