From 20c360bdf1ebca68221903316391c3e401ef17bb Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Fri, 7 Mar 2003 17:31:47 +0000 Subject: [PATCH] Fix logic inversion bugs. Thanks to Russ Christensen for finding the first one. (Logical change 1.125) --- libntfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs/dir.c b/libntfs/dir.c index b7d94263..443322b5 100644 --- a/libntfs/dir.c +++ b/libntfs/dir.c @@ -89,7 +89,7 @@ u64 ntfs_inode_lookup_by_name(ntfs_inode *dir_ni, const uchar_t *uname, return -1; /* Find the index root attribute in the mft record. */ - if (!ntfs_attr_lookup(AT_INDEX_ROOT, I30, 4, CASE_SENSITIVE, 0, NULL, + if (ntfs_attr_lookup(AT_INDEX_ROOT, I30, 4, CASE_SENSITIVE, 0, NULL, 0, ctx)) { Dprintf("Index root attribute missing in directory inode " "0x%Lx: %s\n", @@ -671,7 +671,7 @@ int ntfs_readdir(ntfs_inode *dir_ni, s64 *pos, /* Get the offset into the index root attribute. */ ir_pos = (int)*pos; /* Find the index root attribute in the mft record. */ - if (!ntfs_attr_lookup(AT_INDEX_ROOT, I30, 4, CASE_SENSITIVE, 0, NULL, + if (ntfs_attr_lookup(AT_INDEX_ROOT, I30, 4, CASE_SENSITIVE, 0, NULL, 0, ctx)) { Dprintf("Index root attribute missing in directory inode " "0x%Lx.\n", (unsigned long long)dir_ni->mft_no);