Skip to content

Commit fca8859

Browse files
Jaegeuk Kimgregkh
authored andcommitted
f2fs: Don't clear SGID when inheriting ACLs
commit c925dc162f770578ff4a65ec9b08270382dba9e6 upstream. This patch copies commit b7f8a09f80: "btrfs: Don't clear SGID when inheriting ACLs" written by Jan. Fixes: 073931017b49d9458aa351605b43a7e34598caef Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Chao Yu <yuchao0@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fa696ee commit fca8859

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/f2fs/acl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int __f2fs_set_acl(struct inode *inode, int type,
213213
switch (type) {
214214
case ACL_TYPE_ACCESS:
215215
name_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;
216-
if (acl) {
216+
if (acl && !ipage) {
217217
error = posix_acl_update_mode(inode, &inode->i_mode, &acl);
218218
if (error)
219219
return error;

0 commit comments

Comments
 (0)