diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-20 12:08:28 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-21 10:29:54 +0100 |
commit | 7d8a6e3f517d0bf959a2db2c9c774a15439f6c94 (patch) | |
tree | 958ab88142fbaa5f943afb4948fd1be0211e6818 /usermux/node.c | |
parent | d1fd151cdd1faec5fd4966118586c746a89d93c1 (diff) |
usermux: actually use the computed flags value in netfs_attempt_utimes
If either atime or mtime is NULL, the respective time should be set to
the current time.
Found using the Clang Static Analyzer.
* usermux/node.c (netfs_attempt_utimes): Use flags in call to
fshelp_touch.
Diffstat (limited to 'usermux/node.c')
-rw-r--r-- | usermux/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usermux/node.c b/usermux/node.c index 324b85bf..2341714c 100644 --- a/usermux/node.c +++ b/usermux/node.c @@ -90,7 +90,7 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node, else flags |= TOUCH_ATIME; - fshelp_touch (&node->nn_stat, TOUCH_CTIME, usermux_maptime); + fshelp_touch (&node->nn_stat, flags, usermux_maptime); } return err; } |