Skip to content
Snippets Groups Projects
Commit 9863397d authored by Brian Carrier's avatar Brian Carrier
Browse files

fs_dir_add now does not check meta_addr when adding (BUG: 2534449)

parent fb5055a2
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,10 @@ to meta type). (Bug: 2389901). Reported by Barry Grundy. ...@@ -28,6 +28,10 @@ to meta type). (Bug: 2389901). Reported by Barry Grundy.
1/12/09: Bug Fix: Fixed ISO9660 bug where large directory contents were not displayed. (Bug: 2503552). Reported by Tom Black. 1/12/09: Bug Fix: Fixed ISO9660 bug where large directory contents were not displayed. (Bug: 2503552). Reported by Tom Black.
1/24/09: Bug Fix: Fixed bug 2534449 where extra NTFS files were
shown if the MFT address was changed to 0 because fs_dir_add was
checking the address and name. Reported by Andy Bontoft.
---------------- VERSION 3.0.0 -------------- ---------------- VERSION 3.0.0 --------------
0/00/00: Update: Many, many, many API changes. 0/00/00: Update: Many, many, many API changes.
......
...@@ -102,8 +102,7 @@ tsk_fs_dir_add(TSK_FS_DIR * a_fs_dir, const TSK_FS_NAME * a_fs_name) ...@@ -102,8 +102,7 @@ tsk_fs_dir_add(TSK_FS_DIR * a_fs_dir, const TSK_FS_NAME * a_fs_name)
// see if we already have it in the buffer / queue // see if we already have it in the buffer / queue
for (i = 0; i < a_fs_dir->names_used; i++) { for (i = 0; i < a_fs_dir->names_used; i++) {
if ((a_fs_name->meta_addr == a_fs_dir->names[i].meta_addr) && if (strcmp(a_fs_name->name, a_fs_dir->names[i].name) == 0) {
(strcmp(a_fs_name->name, a_fs_dir->names[i].name) == 0)) {
/* We do not check type because then we cannot detect NTFS orphan file /* We do not check type because then we cannot detect NTFS orphan file
* duplicates that are added as "-/r" while a similar entry exists as "r/r" * duplicates that are added as "-/r" while a similar entry exists as "r/r"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment