Lines 85-91
Link Here
|
85 |
|
85 |
|
86 |
newattrs.ia_mode = mode & ~current->fs->umask; |
86 |
newattrs.ia_mode = mode & ~current->fs->umask; |
87 |
newattrs.ia_uid = current->fsuid; |
87 |
newattrs.ia_uid = current->fsuid; |
88 |
newattrs.ia_gid = current->fsgid; |
88 |
else if (parent->i_mode & S_ISGID) { |
|
|
89 |
newattrs.i_gid = parent->i_gid; |
90 |
if (S_ISDIR(mode)) |
91 |
mode |= S_ISGID; |
92 |
} else |
93 |
newattrs.ia_gid = current->fsgid; |
89 |
|
94 |
|
90 |
if (wh_dentry->d_inode->i_size != 0) { |
95 |
if (wh_dentry->d_inode->i_size != 0) { |
91 |
newattrs.ia_valid |= ATTR_SIZE; |
96 |
newattrs.ia_valid |= ATTR_SIZE; |