controller: overwrite the stale public key copy if it exists instead of crashing

This commit is contained in:
Hylke Bons 2011-11-13 16:21:45 +00:00
parent be14c48ae9
commit f2d8159d36

View file

@ -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
}
}