summaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 22:56:06 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 22:56:06 +0000
commit80e9c5d32e3cc0627754c0ff9d2b73fc1860f248 (patch)
tree2bb7768e54b4d0803a9d7f6a8030e6ae8c5c362a /console
parent803b56c77600468e863212517c44959e00b504f0 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* console.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
Diffstat (limited to 'console')
-rw-r--r--console/ChangeLog4
-rw-r--r--console/console.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index 4a7ad713..7422ee61 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
+
+ * console.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
+
2006-01-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
* console.c (main): Check CONS instead of MALLOC.
diff --git a/console/console.c b/console/console.c
index 118787eb..e4c6183d 100644
--- a/console/console.c
+++ b/console/console.c
@@ -1,5 +1,7 @@
/* console.c -- A console server.
- Copyright (C) 1997, 1999, 2002, 2003 Free Software Foundation, Inc.
+
+ Copyright (C) 1997, 1999, 2002, 2003, 2007 Free Software Foundation, Inc.
+
Written by Miles Bader and Marcus Brinkmann.
This program is free software; you can redistribute it and/or
@@ -500,18 +502,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;