ChangeSet 1.2231.1.171, 2005/03/28 20:03:58-08:00, [EMAIL PROTECTED]

        [PATCH] FAT: Fix msdos ->[ac]{date,time}
        
        MSDOS doesn't have ->adate and ->c{date,time}, those should be filled
        by zero.
        
        This fixes my recent changes.
        
        Signed-off-by: OGAWA Hirofumi <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 namei.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


diff -Nru a/fs/msdos/namei.c b/fs/msdos/namei.c
--- a/fs/msdos/namei.c  2005-03-28 21:44:13 -08:00
+++ b/fs/msdos/namei.c  2005-03-28 21:44:13 -08:00
@@ -266,9 +266,11 @@
                de.attr |= ATTR_HIDDEN;
        de.lcase = 0;
        fat_date_unix2dos(ts->tv_sec, &time, &date);
-       de.time = de.ctime = time;
-       de.date = de.cdate = de.adate = date;
+       de.cdate = de.adate = 0;
+       de.ctime = 0;
        de.ctime_cs = 0;
+       de.time = time;
+       de.date = date;
        de.start = cpu_to_le16(cluster);
        de.starthi = cpu_to_le16(cluster >> 16);
        de.size = 0;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to