summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:04:15 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:04:15 +0000
commit099c39d00f5680cd38b214a4e001e0a04edb7652 (patch)
treebda14455f8209cf69721a025425f33726676c18a
parenta1eb100d51e6a610e017811e73910919d61d4c50 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* inode.c (read_node): Adapt to ``struct stat'' changes.
-rw-r--r--fatfs/ChangeLog4
-rw-r--r--fatfs/inode.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog
index 3348fdd6..b8a022ea 100644
--- a/fatfs/ChangeLog
+++ b/fatfs/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
+
+ * inode.c (read_node): Adapt to ``struct stat'' changes.
+
2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
* dir.c (diskfs_lookup_hard, diskfs_dirempty): Call
diff --git a/fatfs/inode.c b/fatfs/inode.c
index cce8a084..2a427933 100644
--- a/fatfs/inode.c
+++ b/fatfs/inode.c
@@ -385,9 +385,7 @@ read_node (struct node *np, vm_address_t buf)
{
struct timespec ts;
fat_to_epoch (dr->write_date, dr->write_time, &ts);
- st->st_ctime = st->st_mtime = st->st_atime = ts.tv_sec;
- st->st_ctime_usec = st->st_mtime_usec = st->st_atime_usec
- = ts.tv_nsec / 1000;
+ st->st_ctim = st->st_mtim = st->st_atim = ts;
}
st->st_blksize = bytes_per_sector;