From 80e9c5d32e3cc0627754c0ff9d2b73fc1860f248 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 13 Nov 2007 22:56:06 +0000 Subject: 2007-11-13 Thomas Schwinge * console.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. --- console/ChangeLog | 4 ++++ console/console.c | 14 +++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'console') 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 + + * console.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. + 2006-01-23 Samuel Thibault * 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; -- cgit v1.2.3