Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71142
b: refs/heads/master
c: d32c4f2
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Linus Torvalds committed Oct 18, 2007
1 parent c07668d commit 7b877c1
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 188b95dd8ecb02dd6c6e5534cddc5a89aa4e2852
refs/heads/master: d32c4f2626acc385d5187bd5c0c24f442328dc60
5 changes: 5 additions & 0 deletions trunk/fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,11 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
}

time_buf.Attributes = 0;

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

if (attrs->ia_valid & ATTR_MODE) {
cFYI(1, ("Mode changed to 0x%x", attrs->ia_mode));
mode = attrs->ia_mode;
Expand Down

0 comments on commit 7b877c1

Please sign in to comment.