From 6240a760dad9150058f7d40fcaa0ac349246c098 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 13 Nov 2011 16:21:45 +0000 Subject: [PATCH] controller: overwrite the stale public key copy if it exists instead of crashing --- SparkleShare/SparkleControllerBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index 14a269a0..38ee1913 100755 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -894,7 +894,8 @@ namespace SparkleShare { // Create an easily accessible copy of the public // key in the user's SparkleShare folder File.Copy (key_file_path + ".pub", - Path.Combine (SparklePath, UserName + "'s key.txt")); + Path.Combine (SparklePath, UserName + "'s key.txt"), + true); // Overwriting is allowed } }