diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-30 12:36:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-30 12:36:32 +0000 |
commit | 068b64735c904a065049e0ca311674955313ac09 (patch) | |
tree | f623139c00105ce9eb93e08850142cbabd568787 /c/src/exec/libfs/src/imfs/imfs_directory.c | |
parent | Patch from Chris Johns <cjohns@cybertec.com.au> to add support for (diff) | |
download | rtems-068b64735c904a065049e0ca311674955313ac09.tar.bz2 |
Patch from Chris Johns <cjohns@cybertec.com.au> so the directory
read function in the IMFS properly returns the inode number.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/libfs/src/imfs/imfs_directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_directory.c b/c/src/exec/libfs/src/imfs/imfs_directory.c index 38280c565c..4f5ef031fb 100644 --- a/c/src/exec/libfs/src/imfs/imfs_directory.c +++ b/c/src/exec/libfs/src/imfs/imfs_directory.c @@ -114,10 +114,10 @@ int imfs_dir_read( if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ - tmp_dirent.d_ino = 1; tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; + tmp_dirent.d_ino = the_jnode->stat_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); strcpy( tmp_dirent.d_name, the_jnode->name ); memcpy( |