summaryrefslogtreecommitdiff
path: root/isofs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-09-19 19:14:10 +0000
committerMiles Bader <miles@gnu.org>1997-09-19 19:14:10 +0000
commitbacdb6105e91a7f7ce49a61ee433051ec9e2f63e (patch)
tree99e81a5d4c88edaf8255ddc954e18c4836e19627 /isofs
parent2b1b297d1a587fa6aed336c72acdce202f3d73b1 (diff)
(read_disknode):
RR should be RL. Assign 0's type-correctly to NP->dn->translator and ->translen. (diskfs_node_norefs): The translator field is in NP->dn, not NP.
Diffstat (limited to 'isofs')
-rw-r--r--isofs/inode.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/isofs/inode.c b/isofs/inode.c
index cf74ecb7..29f35233 100644
--- a/isofs/inode.c
+++ b/isofs/inode.c
@@ -422,7 +422,7 @@ read_disknode (struct node *np, struct dirrect *dr,
}
}
- if (rr->valid & VALID_TR)
+ if (rl->valid & VALID_TR)
{
st->st_mode |= S_IPTRANS;
np->dn->translen = rl->translen;
@@ -430,8 +430,11 @@ read_disknode (struct node *np, struct dirrect *dr,
rl->trans = 0;
}
else
- np->dn->translator = np->dn->translen = 0;
-
+ {
+ np->dn->translator = 0;
+ np->dn->translen = 0;
+ }
+
diskfs_end_catch_exception ();
return 0;
@@ -456,8 +459,8 @@ diskfs_node_norefs (struct node *np)
assert (node_cache[np->cache_id - 1].np == np);
node_cache[np->cache_id - 1].np = 0;
- if (np->translator)
- free (np->translator);
+ if (np->dn->translator)
+ free (np->dn->translator);
assert (!np->dn->fileinfo);
free (np->dn);