Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58257
b: refs/heads/master
c: fe5a2de
h: refs/heads/master
i:
  58255: 6932915
v: v3
  • Loading branch information
Linus Torvalds committed Jul 8, 2007
1 parent 9b5e361 commit e5743a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4660897e6c2daa198fc8e3f47ae2a4aef69c80b0
refs/heads/master: fe5a2de17e65d82b9d502da80ccb5a689d03fdd2
13 changes: 10 additions & 3 deletions trunk/fs/utimes.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,16 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags
if (IS_IMMUTABLE(inode))
goto dput_and_out;

if (current->fsuid != inode->i_uid &&
(error = vfs_permission(&nd, MAY_WRITE)) != 0)
goto dput_and_out;
if (current->fsuid != inode->i_uid) {
if (f) {
if (!(f->f_mode & FMODE_WRITE))
goto dput_and_out;
} else {
error = vfs_permission(&nd, MAY_WRITE);
if (error)
goto dput_and_out;
}
}
}
mutex_lock(&inode->i_mutex);
error = notify_change(dentry, &newattrs);
Expand Down
1 change: 0 additions & 1 deletion trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,6 @@ struct page *read_cache_page_async(struct address_space *mapping,
page = __read_cache_page(mapping, index, filler, data);
if (IS_ERR(page))
return page;
mark_page_accessed(page);
if (PageUptodate(page))
goto out;

Expand Down

0 comments on commit e5743a3

Please sign in to comment.