Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55187
b: refs/heads/master
c: 7b82dc0
h: refs/heads/master
i:
  55185: 71468c9
  55183: 655f7a4
v: v3
  • Loading branch information
Linus Torvalds committed May 9, 2007
1 parent e2a15b2 commit 4da569e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 1efd48b3ae8f89a1d04f1e36be96764d7bf43ae9
refs/heads/master: 7b82dc0e64e93f430182f36b46b79fcee87d3532
3 changes: 3 additions & 0 deletions trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
newattrs.ia_valid |= ATTR_FILE;
}

/* Remove suid/sgid on truncate too */
newattrs.ia_valid |= should_remove_suid(dentry);

mutex_lock(&dentry->d_inode->i_mutex);
err = notify_change(dentry, &newattrs);
mutex_unlock(&dentry->d_inode->i_mutex);
Expand Down

0 comments on commit 4da569e

Please sign in to comment.