From f34b2fa185c3fa877d424bc840f8b217af252fc7 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Thu, 12 Dec 2002 15:02:11 +0000 Subject: [PATCH] Fix logic inversion bug in ntfs_extent_inode_open(). Spotted and fixed by Szaka. This one was particularly dumb as it has been fixed in the NTFS kernel driver for over half a year but the fix was never propagated into the library. )-: (Logical change 1.39) --- libntfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs/inode.c b/libntfs/inode.c index 7ad85b9c..7ab0d634 100644 --- a/libntfs/inode.c +++ b/libntfs/inode.c @@ -284,7 +284,7 @@ ntfs_inode *ntfs_extent_inode_open(ntfs_inode *base_ni, const MFT_REF mref) ni->nr_extents = -1; ni->base_ni = base_ni; /* Attach extent inode to base inode, reallocating memory if needed. */ - if (!(base_ni->nr_extents & ~3)) { + if (!(base_ni->nr_extents & 3)) { i = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *); extent_nis = (ntfs_inode**)malloc(i);