Skip to content

Commit

Permalink
Merge pull request #149 from SnaffCon/dashbfix
Browse files Browse the repository at this point in the history
Fix for drive roots not being handled properly
  • Loading branch information
l0ss authored Aug 8, 2024
2 parents 90ad180 + 2d0ab43 commit 9bf7459
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Snaffler/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,12 @@ private static Options ParseImpl(string[] args)
if (dirTargetArg.Parsed)
{
parsedConfig.ShareFinderEnabled = false;
Console.WriteLine(dirTargetArg.Value);
string pathTarget = dirTargetArg.Value.TrimEnd('\\');
//Console.WriteLine(dirTargetArg.Value);
string pathTarget = dirTargetArg.Value;
if (dirTargetArg.Value.Length > 4)
{
pathTarget = dirTargetArg.Value.TrimEnd('\\');
}
parsedConfig.PathTargets.Add(pathTarget);
Console.WriteLine(parsedConfig.PathTargets[0]);
Mq.Degub("Disabled finding shares.");
Expand Down

0 comments on commit 9bf7459

Please sign in to comment.