diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 23:08:34 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 23:08:34 +0000 |
commit | 8aa531548128d942355a2232747493dc1f2f4fdd (patch) | |
tree | 46c4baa7171edf8d8bb5f3ebfa0e87abdb8aff22 /hostmux | |
parent | b1720099133811c82a1ab6d9cec835666459638c (diff) |
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* node.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
Diffstat (limited to 'hostmux')
-rw-r--r-- | hostmux/ChangeLog | 4 | ||||
-rw-r--r-- | hostmux/node.c | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/hostmux/ChangeLog b/hostmux/ChangeLog index 239c8f88..37ea28be 100644 --- a/hostmux/ChangeLog +++ b/hostmux/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> * hostmux-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing. diff --git a/hostmux/node.c b/hostmux/node.c index 3576af90..d6edc53e 100644 --- a/hostmux/node.c +++ b/hostmux/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 @@ -77,18 +79,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; |