Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71141
b: refs/heads/master
c: 188b95d
h: refs/heads/master
i:
  71139: 3ac9fe0
v: v3
  • Loading branch information
Jeff Layton authored and Linus Torvalds committed Oct 18, 2007
1 parent f20000d commit c07668d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6de0ec00ba8db84d7c452e65e502989455ecb6ea
refs/heads/master: 188b95dd8ecb02dd6c6e5534cddc5a89aa4e2852
4 changes: 4 additions & 0 deletions trunk/fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)

nfs_inc_stats(inode, NFSIOS_VFSSETATTR);

/* skip mode change if it's just for clearing setuid/setgid */
if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID))
attr->ia_valid &= ~ATTR_MODE;

if (attr->ia_valid & ATTR_SIZE) {
if (!S_ISREG(inode->i_mode) || attr->ia_size == i_size_read(inode))
attr->ia_valid &= ~ATTR_SIZE;
Expand Down

0 comments on commit c07668d

Please sign in to comment.