diff options
-rw-r--r-- | usermux/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usermux/node.c b/usermux/node.c index e4a161d8..47fccf67 100644 --- a/usermux/node.c +++ b/usermux/node.c @@ -75,7 +75,7 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node, { error_t err = fshelp_isowner (&node->nn_stat, cred); int flags = TOUCH_CTIME; - + if (! err) { if (mtime) @@ -85,15 +85,15 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node, } else flags |= TOUCH_MTIME; - + if (atime) { node->nn_stat.st_atime = atime->tv_sec; node->nn_stat.st_atime_usec = atime->tv_nsec / 1000; } else - flags != TOUCH_ATIME; - + flags |= TOUCH_ATIME; + fshelp_touch (&node->nn_stat, TOUCH_CTIME, usermux_maptime); } return err; |