Skip to content
Snippets Groups Projects
Unverified Commit 06e34a70 authored by Ann Priestman's avatar Ann Priestman Committed by GitHub
Browse files

Merge pull request #2887 from crayy8/develop

Add case insensitive check for ADS
parents 1a0e083b 60017b3f
Branches ct-3.9.0
No related tags found
No related merge requests found
......@@ -341,6 +341,13 @@ tsk_fs_attrlist_get_name_type(const TSK_FS_ATTRLIST * a_fs_attrlist,
|| (fs_attr_ok->id > fs_attr_cur->id))
fs_attr_ok = fs_attr_cur;
}
else if ((name) && (fs_attr_cur->name) && fs_attr_cur->type == TSK_FS_ATTR_TYPE_NTFS_DATA && !stricmp(fs_attr_cur->name, name)) {
// NTFS data streams should do case insensitive compare
// make sure we return the lowest if multiple exist
if ((fs_attr_ok == NULL) || (fs_attr_ok->id > fs_attr_cur->id))
fs_attr_ok = fs_attr_cur;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment