windows: use forwards slashes whem importing key on domain account. #1263

This commit is contained in:
Hylke Bons 2013-06-17 16:11:06 +01:00
parent b8703f587d
commit 064fe7f00d

View file

@ -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 ();