summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_unlink.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-05 22:26:12 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-05 22:26:12 +0000
commitf758f8102a300d0d396c62781023ff3063b72ccd (patch)
treeeb76ee8f32391f2606900d5cec389427a4117c28 /cpukit/libfs/src/imfs/imfs_unlink.c
parent089ad91debf09e107f4b42d7a4a1916f0c134c40 (diff)
downloadrtems-f758f8102a300d0d396c62781023ff3063b72ccd.tar.bz2
Correctly set and called handlers table for the link.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_unlink.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_unlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_unlink.c b/cpukit/libfs/src/imfs/imfs_unlink.c
index 03938937f4..2bb968d23a 100644
--- a/cpukit/libfs/src/imfs/imfs_unlink.c
+++ b/cpukit/libfs/src/imfs/imfs_unlink.c
@@ -47,6 +47,7 @@ int IMFS_unlink(
the_link = *loc;
the_link.node_access = node->info.hard_link.link_node;
+ IMFS_Set_handlers( &the_link );
/*
* If removing the last hard link to a node, then we need
@@ -56,7 +57,7 @@ int IMFS_unlink(
node->info.hard_link.link_node->st_nlink --;
IMFS_update_ctime( node->info.hard_link.link_node );
if ( node->info.hard_link.link_node->st_nlink < 1) {
- result = (*loc->handlers->rmnod)( &the_link );
+ result = (*the_link.handlers->rmnod)( &the_link );
if ( result != 0 )
return -1;
}
@@ -70,3 +71,4 @@ int IMFS_unlink(
return result;
}
+