diff options
Diffstat (limited to 'console-client')
-rw-r--r-- | console-client/ChangeLog | 4 | ||||
-rw-r--r-- | console-client/trans.c | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/console-client/ChangeLog b/console-client/ChangeLog index b69ffe4f..cf2d16c9 100644 --- a/console-client/ChangeLog +++ b/console-client/ChangeLog @@ -1,3 +1,7 @@ +2007-11-13 Thomas Schwinge <tschwinge@gnu.org> + + * trans.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. + 2007-05-08 Samuel Thibault <samuel.thibault@ens-lyon.org> * vga-support.c (vga_fini): Fix call to ioperm(). diff --git a/console-client/trans.c b/console-client/trans.c index ee7581b4..a90b5c5d 100644 --- a/console-client/trans.c +++ b/console-client/trans.c @@ -1,5 +1,7 @@ /* trans.c -- Control a translator node for the repeaters. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. + Written by Marco Gerards. This program is free software; you can redistribute it and/or @@ -173,18 +175,12 @@ netfs_attempt_utimes (struct iouser *cred, struct node *np, if (! err) { if (mtime) - { - np->nn_stat.st_mtime = mtime->tv_sec; - np->nn_stat.st_mtime_usec = mtime->tv_nsec / 1000; - } + np->nn_stat.st_mtim = *mtime; else flags |= TOUCH_MTIME; if (atime) - { - np->nn_stat.st_atime = atime->tv_sec; - np->nn_stat.st_atime_usec = atime->tv_nsec / 1000; - } + np->nn_stat.st_atim = *atime; else flags |= TOUCH_ATIME; |