From 151fa56ec6f83ad5f1475a79bdecb05f233cf95c Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Fri, 13 Dec 2002 15:54:44 +0000 Subject: [PATCH] Don't free extent inodes in attrib.c! (Szakacsits Szabolcs) (Logical change 1.45) --- ChangeLog | 1 + libntfs/attrib.c | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f40f0138..19e4de73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -162,6 +162,7 @@ to the closing of the base inode to dispose of all the extent inodes. - Add sanity check to ntfs_inode_close() to detect attempts at closing extent inodes. + - Don't free extent inodes in attrib.c! (Szakacsits Szabolcs) 12/03/2002 - 1.6.0 - More mkntfs options and cleanups. Fix typo in usage information of mkntfs. Thanks to Richard Russon for diff --git a/libntfs/attrib.c b/libntfs/attrib.c index 865acfd5..22290f52 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -1559,9 +1559,6 @@ is_enumeration: break; } } else { /* Mft references do not match. */ - /* If there is a mapped extent inode unmap it first. */ - if (ni != base_ni) - ntfs_inode_close(ni); /* Do we want the base record back? */ if (MREF_LE(al_entry->mft_reference) == base_ni->mft_no) { @@ -1642,8 +1639,6 @@ do_next_attr: goto do_next_attr_loop; } if (ni != base_ni) { - if (ni) - ntfs_inode_close(ni); ctx->ntfs_ino = base_ni; ctx->mrec = ctx->base_mrec; ctx->attr = ctx->base_attr;