Correctly set and called handlers table for the link.

This commit is contained in:
Jennifer Averett
1999-11-05 22:26:12 +00:00
parent 089ad91deb
commit f758f8102a
4 changed files with 12 additions and 4 deletions

View File

@@ -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;
}