From f7c342dafe874f5438e97810418e34c8aae1b8a9 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Wed, 24 Sep 2003 13:16:33 +0000 Subject: [PATCH] Auto merged 2003/09/24 14:13:09+01:00 cantab.net!aia21 The workaround for the bug in ntfs_attr_lookup() no longer needed as the bug should be fixed. (Logical change 1.182) --- ntfsprogs/utils.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ntfsprogs/utils.c b/ntfsprogs/utils.c index 294e9e18..9092efd8 100644 --- a/ntfsprogs/utils.c +++ b/ntfsprogs/utils.c @@ -395,7 +395,6 @@ int utils_inode_get_name (ntfs_inode *inode, char *buffer, int bufsize) ntfs_volume *vol; ntfs_attr_search_ctx *ctx; ATTR_RECORD *rec; - ATTR_RECORD *oldrec; FILE_NAME_ATTR *attr; int name_space; MFT_REF parent = FILE_root; @@ -421,11 +420,7 @@ int utils_inode_get_name (ntfs_inode *inode, char *buffer, int bufsize) //printf ("i = %d, inode = %p (%lld)\n", i, inode, inode->mft_no); name_space = 4; - oldrec = NULL; while ((rec = find_attribute (AT_FILE_NAME, ctx))) { - if (rec == oldrec) - break; - oldrec = rec; /* We know this will always be resident. */ attr = (FILE_NAME_ATTR *) ((char *) rec + le16_to_cpu (rec->value_offset));