diff options
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_rename.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_rename.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_rename.c b/cpukit/libfs/src/imfs/imfs_rename.c index f45aa5b694..95c27fa9fd 100644 --- a/cpukit/libfs/src/imfs/imfs_rename.c +++ b/cpukit/libfs/src/imfs/imfs_rename.c @@ -36,15 +36,15 @@ int IMFS_rename( the_jnode = old_loc->node_access; strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); - + if ( the_jnode->Parent != NULL ) rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; the_jnode->Parent = new_parent; - + rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); - + /* * Update the time. */ |