Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
63ae5be0
Commit
63ae5be0
authored
7 years ago
by
Brian Carrier
Browse files
Options
Downloads
Patches
Plain Diff
Update directory name so that we can determine when we are hunting for orphan files
parent
69acc019
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsk/auto/auto_db.cpp
+14
-5
14 additions, 5 deletions
tsk/auto/auto_db.cpp
with
14 additions
and
5 deletions
tsk/auto/auto_db.cpp
+
14
−
5
View file @
63ae5be0
...
@@ -722,11 +722,20 @@ TskAutoDb::processFile(TSK_FS_FILE * fs_file, const char *path)
...
@@ -722,11 +722,20 @@ TskAutoDb::processFile(TSK_FS_FILE * fs_file, const char *path)
return
TSK_STOP
;
return
TSK_STOP
;
}
}
/* If no longer processing the same directory as the last file,
/* Update the current directory, which can be used to show
* then update the class-level setting. */
* progress. If we get a directory, then use its name. We
int64_t
cur
=
fs_file
->
name
->
par_addr
;
* do this so that when we are searching for orphan files, then
if
(
m_curDirId
!=
cur
)
{
* we at least show $OrphanFiles as status. The secondary check
m_curDirId
=
cur
;
* is to grab the parent folder from files once we return back
* into a folder when we are doing our depth-first recursion. */
if
(
isDir
(
fs_file
))
{
m_curDirId
=
fs_file
->
name
->
meta_addr
;
tsk_take_lock
(
&
m_curDirPathLock
);
m_curDirPath
=
string
(
path
)
+
fs_file
->
name
->
name
;
tsk_release_lock
(
&
m_curDirPathLock
);
}
else
if
(
m_curDirId
!=
fs_file
->
name
->
par_addr
)
{
m_curDirId
=
fs_file
->
name
->
par_addr
;
tsk_take_lock
(
&
m_curDirPathLock
);
tsk_take_lock
(
&
m_curDirPathLock
);
m_curDirPath
=
path
;
m_curDirPath
=
path
;
tsk_release_lock
(
&
m_curDirPathLock
);
tsk_release_lock
(
&
m_curDirPathLock
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment