mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
[XFS] Catch errors from xfs_acl_vremove().
Removing an ACL can return an error. Propagate it. SGI-PV: 980084 SGI-Modid: xfs-linux-melb:xfs-kern:30793a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Niv Sardi <xaiki@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
parent
0c92829967
commit
5ca1f261a0
@ -324,7 +324,7 @@ xfs_acl_vset(
|
|||||||
if (!basicperms) {
|
if (!basicperms) {
|
||||||
xfs_acl_set_attr(vp, xfs_acl, kind, &error);
|
xfs_acl_set_attr(vp, xfs_acl, kind, &error);
|
||||||
} else {
|
} else {
|
||||||
xfs_acl_vremove(vp, _ACL_TYPE_ACCESS);
|
error = -xfs_acl_vremove(vp, _ACL_TYPE_ACCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user