Skip to content

Commit

Permalink
Merge pull request #68 from reece394/ParseDirtyHiveNoLog
Browse files Browse the repository at this point in the history
Change default behaviour of nl true
  • Loading branch information
EricZimmerman authored Jan 15, 2025
2 parents 103c406 + 09aec93 commit 0eac88e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions RECmd/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static async Task Main(string[] args)
new Option<bool>(
"--nl",
() => false,
"When true, ignore transaction log files for dirty hives"),
"When true, allow transaction log files to not exist for dirty hives"),

new Option<bool>(
"--recover",
Expand Down Expand Up @@ -888,8 +888,6 @@ private static void DoWork(string d, string f, string kn, string vn, string bn,
}
else
{
if (nl == false)
{
if (rawFiles != null)
{
var lt = new List<TransactionLogFileInfo>();
Expand All @@ -907,11 +905,6 @@ private static void DoWork(string d, string f, string kn, string vn, string bn,
{
reg.ProcessTransactionLogs(logFiles.ToList(), true);
}
}
else
{
Log.Warning("Registry hive is dirty and transaction logs were found in the same directory, but --nl was provided. Data may be missing! Continuing anyways...");
}
}
}

Expand Down

0 comments on commit 0eac88e

Please sign in to comment.