Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98441
b: refs/heads/master
c: c70f844
h: refs/heads/master
i:
  98439: ce571c6
v: v3
  • Loading branch information
Michael Kerrisk authored and Al Viro committed Jun 23, 2008
1 parent ccd25e0 commit 86f9611
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 4cca92264e61a90b43fc4e076cd25b7f4e16dc61
refs/heads/master: c70f84417429f41519be0197a1092a53c2201f47
11 changes: 3 additions & 8 deletions trunk/fs/utimes.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,9 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags
goto mnt_drop_write_and_out;

if (!is_owner_or_cap(inode)) {
if (f) {
if (!(f->f_mode & FMODE_WRITE))
goto mnt_drop_write_and_out;
} else {
error = vfs_permission(&nd, MAY_WRITE);
if (error)
goto mnt_drop_write_and_out;
}
error = permission(inode, MAY_WRITE, NULL);
if (error)
goto mnt_drop_write_and_out;
}
}
mutex_lock(&inode->i_mutex);
Expand Down

0 comments on commit 86f9611

Please sign in to comment.