Skip to content

Commit 9bf7459

Browse files
authored
Merge pull request #149 from SnaffCon/dashbfix
Fix for drive roots not being handled properly
2 parents 90ad180 + 2d0ab43 commit 9bf7459

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Snaffler/Config.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ private static Options ParseImpl(string[] args)
305305
if (dirTargetArg.Parsed)
306306
{
307307
parsedConfig.ShareFinderEnabled = false;
308-
Console.WriteLine(dirTargetArg.Value);
309-
string pathTarget = dirTargetArg.Value.TrimEnd('\\');
308+
//Console.WriteLine(dirTargetArg.Value);
309+
string pathTarget = dirTargetArg.Value;
310+
if (dirTargetArg.Value.Length > 4)
311+
{
312+
pathTarget = dirTargetArg.Value.TrimEnd('\\');
313+
}
310314
parsedConfig.PathTargets.Add(pathTarget);
311315
Console.WriteLine(parsedConfig.PathTargets[0]);
312316
Mq.Degub("Disabled finding shares.");

0 commit comments

Comments
 (0)