Skip to content

Commit

Permalink
f2fs: Don't clear SGID when inheriting ACLs
Browse files Browse the repository at this point in the history
This patch copies commit b7f8a09:
"btrfs: Don't clear SGID when inheriting ACLs" written by Jan.

Fixes: 0739310
CC: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Jul 16, 2017
1 parent 5ffff28 commit c925dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/f2fs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static int __f2fs_set_acl(struct inode *inode, int type,
switch (type) {
case ACL_TYPE_ACCESS:
name_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;
if (acl) {
if (acl && !ipage) {
error = posix_acl_update_mode(inode, &inode->i_mode, &acl);
if (error)
return error;
Expand Down

0 comments on commit c925dc1

Please sign in to comment.