diff options
Diffstat (limited to 'console')
-rw-r--r-- | console/ChangeLog | 4 | ||||
-rw-r--r-- | console/console.c | 14 |
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; |