summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/ChangeLog5
-rw-r--r--libtrivfs/times.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/libtrivfs/ChangeLog b/libtrivfs/ChangeLog
index e57da6a3..205262b5 100644
--- a/libtrivfs/ChangeLog
+++ b/libtrivfs/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jan 31 18:29:22 1999 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * times.c (trivfs_set_atime, trivefs_set_mtime): Take advantage of
+ new semantics for file_utimes.
+
1998-08-20 Roland McGrath <roland@baalperazim.frob.com>
* file-get-fs-options.c (trivfs_S_file_get_fs_options):
diff --git a/libtrivfs/times.c b/libtrivfs/times.c
index 2c527612..b57fa981 100644
--- a/libtrivfs/times.c
+++ b/libtrivfs/times.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1999 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -27,7 +27,7 @@ trivfs_set_atime (struct trivfs_control *cntl)
io_stat (cntl->underlying, &st);
mtime.seconds = st.st_mtime;
mtime.microseconds = st.st_mtime_usec;
- host_get_time (mach_host_self (), &atime);
+ atime.microseconds = -1;
file_utimes (cntl->underlying, atime, mtime);
return 0;
}
@@ -42,7 +42,7 @@ trivfs_set_mtime (struct trivfs_control *cntl)
io_stat (cntl->underlying, &st);
atime.seconds = st.st_atime;
atime.microseconds = st.st_atime_usec;
- host_get_time (mach_host_self (), &mtime);
+ mtime.microseconds = -1;
file_utimes (cntl->underlying, atime, mtime);
return 0;
}