summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:34:29 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:34:29 +0000
commit5cbff81963ca5469979ca7a41e20218c5990a4ac (patch)
treecb2b79174a4f3036371ef07e0c78c225900f5d6f
parent23bf81d8580b765229e9b4cf566a1445f191c2d0 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* node.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
-rw-r--r--usermux/ChangeLog4
-rw-r--r--usermux/node.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/usermux/ChangeLog b/usermux/ChangeLog
index 28feeced..6c107c24 100644
--- a/usermux/ChangeLog
+++ b/usermux/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
+
+ * node.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
+
2004-10-23 Marcus Brinkmann <marcus@gnu.org>
* usermux-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
diff --git a/usermux/node.c b/usermux/node.c
index 47fccf67..f4a5f7d7 100644
--- a/usermux/node.c
+++ b/usermux/node.c
@@ -1,7 +1,9 @@
/* General fs node functions
- Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2007 Free Software Foundation, Inc.
+
Written by Miles Bader <miles@gnu.ai.mit.edu>
+
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -79,18 +81,12 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node,
if (! err)
{
if (mtime)
- {
- node->nn_stat.st_mtime = mtime->tv_sec;
- node->nn_stat.st_mtime_usec = mtime->tv_nsec / 1000;
- }
+ node->nn_stat.st_mtim = *mtime;
else
flags |= TOUCH_MTIME;
if (atime)
- {
- node->nn_stat.st_atime = atime->tv_sec;
- node->nn_stat.st_atime_usec = atime->tv_nsec / 1000;
- }
+ node->nn_stat.st_atim = *atime;
else
flags |= TOUCH_ATIME;