diff options
Diffstat (limited to 'hostmux/node.c')
-rw-r--r-- | hostmux/node.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/hostmux/node.c b/hostmux/node.c index 7167300f..f1e17769 100644 --- a/hostmux/node.c +++ b/hostmux/node.c @@ -78,16 +78,12 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node, if (! err) { - if (mtime) - node->nn_stat.st_mtim = *mtime; - else - flags |= TOUCH_MTIME; - if (atime) - node->nn_stat.st_atim = *atime; - else - flags |= TOUCH_ATIME; + node->nn_stat.st_atim = *atime; + if (mtime) + node->nn_stat.st_mtim = *mtime; + fshelp_touch (&node->nn_stat, flags, hostmux_maptime); } return err; |