summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:18:53 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:18:53 +0000
commit6c6f86e0d6b4100d1a03032b82c385892f09e7d0 (patch)
treedda6b6c017345267daeb683cc4a0b518ddf73ed2 /libtrivfs
parenta592d6796c6e61b51fc5eff258c294562d26e0cb (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* times.c (trivfs_set_atime, trivfs_set_mtime): Adapt to ``struct stat'' changes.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/ChangeLog5
-rw-r--r--libtrivfs/times.c8
2 files changed, 9 insertions, 4 deletions
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 <tschwinge@gnu.org>
+
+ * times.c (trivfs_set_atime, trivfs_set_mtime): Adapt to ``struct
+ stat'' changes.
+
2003-10-11 Marcus Brinkmann <marcus@gnu.org>
* 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;