]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 26 May 2012 23:00:46 +0000 (01:00 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 26 May 2012 23:00:46 +0000 (01:00 +0200)
ChangeLog
grub-core/fs/ntfs.c

index 732ed152e66828810638bf15097ae74c803a5b7d..c26473f44e13ea3f735e2b98d39f02d614625e48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
+
 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
index 80e0f6a0eac04afefcce02fd2d006cc54fc33a5d..b9762b6a0649b2f995045b568f93f7294f7d91b7 100644 (file)
@@ -650,10 +650,7 @@ list_file (struct grub_ntfs_file *diro, char *pos,
 
          fdiro->data = diro->data;
          fdiro->ino = u32at (pos, 0);
-         if (u64at (pos, 0x20) > u64at (pos, 0x28))
-           fdiro->mtime = u64at (pos, 0x20);
-         else
-           fdiro->mtime = u64at (pos, 0x28);
+         fdiro->mtime = u64at (pos, 0x20);
 
          ustr = grub_malloc (ns * GRUB_MAX_UTF8_PER_UTF16 + 1);
          if (ustr == NULL)