From 064fe7f00dc29a8cc6e5b5c4d507479f8c937e8c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 17 Jun 2013 16:11:06 +0100 Subject: [PATCH] windows: use forwards slashes whem importing key on domain account. #1263 --- SparkleShare/SparkleKeys.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SparkleShare/SparkleKeys.cs b/SparkleShare/SparkleKeys.cs index 4a520b02..e1197eba 100644 --- a/SparkleShare/SparkleKeys.cs +++ b/SparkleShare/SparkleKeys.cs @@ -61,6 +61,10 @@ namespace SparkleShare { public static void ImportPrivateKey (string key_file_path) { + // Use forward slashes when dealing with Windows domain accounts + if (key_file_path.StartsWith ("\\\\")) + key_file_path = key_file_path.Replace ("\\", "/"); + SparkleKeyProcess process = new SparkleKeyProcess ("ssh-add", "\"" + key_file_path + "\""); process.Start (); process.WaitForExit ();