[PATCH] knfsd: nfsd4: fix error return on unsupported acl
We should be returning ATTRNOTSUPP, not NOTSUPP, when acls are unsupported. Also fix a comment. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a4db5fe5df
commit
f34f924274
@@ -466,7 +466,10 @@ out:
|
||||
posix_acl_release(dpacl);
|
||||
return (error);
|
||||
out_nfserr:
|
||||
error = nfserrno(host_error);
|
||||
if (host_error == -EOPNOTSUPP)
|
||||
error = nfserr_attrnotsupp;
|
||||
else
|
||||
error = nfserrno(host_error);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user