Commit 0e7fc0b7 authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] hfs: read correct dir time

Fix a small typo and read the correct time for a dir.
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent de57d832
...@@ -331,7 +331,7 @@ int hfs_read_inode(struct inode *inode, void *data) ...@@ -331,7 +331,7 @@ int hfs_read_inode(struct inode *inode, void *data)
HFS_I(inode)->fs_blocks = 0; HFS_I(inode)->fs_blocks = 0;
inode->i_mode = S_IFDIR | (S_IRWXUGO & hsb->s_dir_umask); inode->i_mode = S_IFDIR | (S_IRWXUGO & hsb->s_dir_umask);
inode->i_ctime = inode->i_atime = inode->i_mtime = 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_op = &hfs_dir_inode_operations;
inode->i_fop = &hfs_dir_operations; inode->i_fop = &hfs_dir_operations;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment