Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98438
b: refs/heads/master
c: 12fd0d3
h: refs/heads/master
v: v3
  • Loading branch information
Michael Kerrisk authored and Al Viro committed Jun 23, 2008
1 parent 984d29c commit 91b201f
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: fe6e9c1f25ac01f848bd084ee0ee62a5a0966ff3
refs/heads/master: 12fd0d3088d27867be68655bcab2b074f2835f60
4 changes: 4 additions & 0 deletions trunk/fs/utimes.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags
if (error)
goto dput_and_out;

if (times && times[0].tv_nsec == UTIME_NOW &&
times[1].tv_nsec == UTIME_NOW)
times = NULL;

/* Don't worry, the checks are done in inode_change_ok() */
newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME;
if (times) {
Expand Down

0 comments on commit 91b201f

Please sign in to comment.