summaryrefslogtreecommitdiff
path: root/ftpfs
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:06:58 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:06:58 +0000
commitb1720099133811c82a1ab6d9cec835666459638c (patch)
tree821963ddb49234a1e93e8f9bab5a2d52f1e73e9e /ftpfs
parent099c39d00f5680cd38b214a4e001e0a04edb7652 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* netfs.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
Diffstat (limited to 'ftpfs')
-rw-r--r--ftpfs/ChangeLog4
-rw-r--r--ftpfs/netfs.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/ftpfs/ChangeLog b/ftpfs/ChangeLog
index b9866ca9..e6df33b0 100644
--- a/ftpfs/ChangeLog
+++ b/ftpfs/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
+
+ * netfs.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
+
2006-07-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
* node.c (ftpfs_create_node): Check the result from hurd_ihash_add().
diff --git a/ftpfs/netfs.c b/ftpfs/netfs.c
index 0bc6f5be..8922f3ab 100644
--- a/ftpfs/netfs.c
+++ b/ftpfs/netfs.c
@@ -1,7 +1,9 @@
/* ftpfs interface to libnetfs
- Copyright (C) 1997,98,99,2001 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 2001, 2007 Free Software Foundation, Inc.
+
Written by Miles Bader <miles@gnu.org>
+
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -75,18 +77,12 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node,
if (! err)
{
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;
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;