mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-27 12:03:42 +08:00
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)
This commit is contained in:
parent
e9bce127fa
commit
f7c342dafe
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user