changeset 1220:c87d732b5f4a

Fix stat() to return valid inode number - from Thomas Koeller
author gthomas
date Thu, 18 Sep 2003 19:40:33 +0000
parents f2d548ecdbde
children 219ba4658ed2
files packages/fs/jffs2/current/ChangeLog packages/fs/jffs2/current/src/fs-ecos.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/fs/jffs2/current/ChangeLog
+++ b/packages/fs/jffs2/current/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-18  Thomas Koeller  <thomas.koeller@baslerweb.com>
+
+	* src/fs-ecos.c: Inode number returned by stat() was bogus.
+
 2003-07-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* src/os-ecos.h: Added new #defines require for the recent jffs2
--- a/packages/fs/jffs2/current/src/fs-ecos.c
+++ b/packages/fs/jffs2/current/src/fs-ecos.c
@@ -1143,7 +1143,7 @@ static int jffs2_stat(cyg_mtab_entry * m
 
 	// Fill in the status
 	buf->st_mode = ds.node->i_mode;
-	buf->st_ino = (ino_t) ds.node;
+	buf->st_ino = ds.node->i_ino;
 	buf->st_dev = 0;
 	buf->st_nlink = ds.node->i_nlink;
 	buf->st_uid = 0;