From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Zippel Subject: [PATCH 4/6] read correct dir time Date: Thu, 21 Oct 2004 01:13:43 +0200 (CEST) Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from scrub.xs4all.nl ([194.109.195.176]:47267 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S270347AbUJTXNp (ORCPT ); Wed, 20 Oct 2004 19:13:45 -0400 To: Andrew Morton , linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Fix a small typo and read the correct time for a dir. Signed-off-by: Roman Zippel Index: linux-2.6-hfs/fs/hfs/inode.c =================================================================== --- linux-2.6-hfs.orig/fs/hfs/inode.c 2004-10-21 00:43:06.378104370 +0200 +++ linux-2.6-hfs/fs/hfs/inode.c 2004-10-21 00:43:13.381901456 +0200 @@ -331,7 +331,7 @@ int hfs_read_inode(struct inode *inode, HFS_I(inode)->fs_blocks = 0; inode->i_mode = S_IFDIR | (S_IRWXUGO & hsb->s_dir_umask); inode->i_ctime = inode->i_atime = inode->i_mtime = - hfs_m_to_utime(rec->file.MdDat); + hfs_m_to_utime(rec->dir.MdDat); inode->i_op = &hfs_dir_inode_operations; inode->i_fop = &hfs_dir_operations; break;