Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309982
b: refs/heads/master
c: c217a2a
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed May 30, 2012
1 parent 153146a commit 7332a93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 0aa2ee5f0a341a7fc081a499b221d29784ed711d
refs/heads/master: c217a2a004d98d09dfceec3a023c563ed800e833
5 changes: 3 additions & 2 deletions trunk/fs/utimes.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,19 @@ long do_utimes(int dfd, const char __user *filename, struct timespec *times,
goto out;

if (filename == NULL && dfd != AT_FDCWD) {
int fput_needed;
struct file *file;

if (flags & AT_SYMLINK_NOFOLLOW)
goto out;

file = fget(dfd);
file = fget_light(dfd, &fput_needed);
error = -EBADF;
if (!file)
goto out;

error = utimes_common(&file->f_path, times);
fput(file);
fput_light(file, fput_needed);
} else {
struct path path;
int lookup_flags = 0;
Expand Down

0 comments on commit 7332a93

Please sign in to comment.