Skip to content

Commit 0eac88e

Browse files
Merge pull request #68 from reece394/ParseDirtyHiveNoLog
Change default behaviour of nl true
2 parents 103c406 + 09aec93 commit 0eac88e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

RECmd/Program.cs

+1-8
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private static async Task Main(string[] args)
237237
new Option<bool>(
238238
"--nl",
239239
() => false,
240-
"When true, ignore transaction log files for dirty hives"),
240+
"When true, allow transaction log files to not exist for dirty hives"),
241241

242242
new Option<bool>(
243243
"--recover",
@@ -888,8 +888,6 @@ private static void DoWork(string d, string f, string kn, string vn, string bn,
888888
}
889889
else
890890
{
891-
if (nl == false)
892-
{
893891
if (rawFiles != null)
894892
{
895893
var lt = new List<TransactionLogFileInfo>();
@@ -907,11 +905,6 @@ private static void DoWork(string d, string f, string kn, string vn, string bn,
907905
{
908906
reg.ProcessTransactionLogs(logFiles.ToList(), true);
909907
}
910-
}
911-
else
912-
{
913-
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...");
914-
}
915908
}
916909
}
917910

0 commit comments

Comments
 (0)