linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/6] read correct dir time
@ 2004-10-20 23:13 Roman Zippel
  0 siblings, 0 replies; only message in thread
From: Roman Zippel @ 2004-10-20 23:13 UTC (permalink / raw)
  To: Andrew Morton, linux-fsdevel


Fix a small typo and read the correct time for a dir.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-20 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 23:13 [PATCH 4/6] read correct dir time Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).