diff options
-rw-r--r-- | fatfs/ChangeLog | 4 | ||||
-rw-r--r-- | fatfs/inode.c | 4 |
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; |