git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
posix_acl: Clear SGID bit when setting file permissions
[pandora-kernel.git]
/
fs
/
btrfs
/
acl.c
diff --git
a/fs/btrfs/acl.c
b/fs/btrfs/acl.c
index
89b156d
..
9f55b54
100644
(file)
--- a/
fs/btrfs/acl.c
+++ b/
fs/btrfs/acl.c
@@
-118,8
+118,8
@@
static int btrfs_set_acl(struct btrfs_trans_handle *trans,
case ACL_TYPE_ACCESS:
name = POSIX_ACL_XATTR_ACCESS;
if (acl) {
- ret = posix_acl_
equiv_mode(acl, &inode->i_mode
);
- if (ret
< 0
)
+ ret = posix_acl_
update_mode(inode, &inode->i_mode, &acl
);
+ if (ret)
return ret;
}
ret = 0;