[Bind] Declare key file is only read

Partly fixes #284
This commit is contained in:
Fraser Waters 2015-10-01 12:19:21 +01:00
parent 92a45d5f90
commit 13f79437d5

View file

@ -82,7 +82,7 @@ namespace OpenTK.Rewrite
if (!String.IsNullOrEmpty(keyfile) && File.Exists(keyfile))
{
keyfile = Path.GetFullPath(keyfile);
var fs = new FileStream(keyfile, FileMode.Open);
var fs = new FileStream(keyfile, FileMode.Open, FileAccess.Read);
var keypair = new System.Reflection.StrongNameKeyPair(fs);
fs.Close();
write_params.StrongNameKeyPair = keypair;