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/console.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'console/console.c') 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