From 6c6f86e0d6b4100d1a03032b82c385892f09e7d0 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 13 Nov 2007 23:18:53 +0000 Subject: 2007-11-13 Thomas Schwinge * times.c (trivfs_set_atime, trivfs_set_mtime): Adapt to ``struct stat'' changes. --- libtrivfs/ChangeLog | 5 +++++ libtrivfs/times.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'libtrivfs') diff --git a/libtrivfs/ChangeLog b/libtrivfs/ChangeLog index d363943c..dc6bdcb4 100644 --- a/libtrivfs/ChangeLog +++ b/libtrivfs/ChangeLog @@ -1,3 +1,8 @@ +2007-11-13 Thomas Schwinge + + * times.c (trivfs_set_atime, trivfs_set_mtime): Adapt to ``struct + stat'' changes. + 2003-10-11 Marcus Brinkmann * nosenders.c, notify-stubs.c: Remove obsolete files. diff --git a/libtrivfs/times.c b/libtrivfs/times.c index b57fa981..2631df76 100644 --- a/libtrivfs/times.c +++ b/libtrivfs/times.c @@ -25,8 +25,8 @@ trivfs_set_atime (struct trivfs_control *cntl) time_value_t mtime; io_stat (cntl->underlying, &st); - mtime.seconds = st.st_mtime; - mtime.microseconds = st.st_mtime_usec; + mtime.seconds = st.st_mtim.tv_sec; + mtime.microseconds = st.st_mtim.tv_nsec / 1000; atime.microseconds = -1; file_utimes (cntl->underlying, atime, mtime); return 0; @@ -40,8 +40,8 @@ trivfs_set_mtime (struct trivfs_control *cntl) time_value_t mtime; io_stat (cntl->underlying, &st); - atime.seconds = st.st_atime; - atime.microseconds = st.st_atime_usec; + atime.seconds = st.st_atim.tv_sec; + atime.microseconds = st.st_atim.tv_nsec / 1000; mtime.microseconds = -1; file_utimes (cntl->underlying, atime, mtime); return 0; -- cgit v1.2.3