diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-10-06 21:10:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-10-06 21:12:24 +0200 |
commit | 01518d3aa09ad8cb2cb82dcb329aeaab96c95bce (patch) | |
tree | f62fbd04446ca2f1cd6ec96c009071238bc922c5 /cli_ure/source/climaker/climaker_app.cxx | |
parent | 7154aece1fdc3ea5049ba2d91ce929a14d139056 (diff) |
cli_ure: climaker should open keyfile read-only
This should fix build failures due to file locking preventing concurrent
access to cli_ure/source/cliuno.snk.
Change-Id: Iefd16ed83a01523b3612844c2f777516dc4e44c6
Diffstat (limited to 'cli_ure/source/climaker/climaker_app.cxx')
-rw-r--r-- | cli_ure/source/climaker/climaker_app.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx index 01ab101b0f73..0cd67d9f4a19 100644 --- a/cli_ure/source/climaker/climaker_app.cxx +++ b/cli_ure/source/climaker/climaker_app.cxx @@ -462,7 +462,8 @@ SAL_IMPLEMENT_MAIN() ::System::String ^ sKeyFile = ustring_to_String(keyfile); try { System::IO::FileStream^ fs = gcnew System::IO::FileStream( - sKeyFile, System::IO::FileMode::Open); + sKeyFile, System::IO::FileMode::Open, + System::IO::FileAccess::Read, System::IO::FileShare::Read); kp = gcnew StrongNameKeyPair(fs); fs->Close(); } |