summaryrefslogtreecommitdiff
path: root/cli_ure
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-10-06 21:10:27 +0200
committerAndras Timar <andras.timar@collabora.com>2015-10-29 13:08:55 +0100
commit2049ed94a1943aae4bbfc073380bc0b58678446e (patch)
tree4d095d66634bacb300911289adb07c48cef13bf9 /cli_ure
parentc3780d73d36009db5469efa1011667ea56407694 (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 (cherry picked from commit 01518d3aa09ad8cb2cb82dcb329aeaab96c95bce) Reviewed-on: https://gerrit.libreoffice.org/19483 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit d0d03f22ef5eddb7036867205577d488b1af7528)
Diffstat (limited to 'cli_ure')
-rw-r--r--cli_ure/source/climaker/climaker_app.cxx3
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 efff92ded838..97191829e10a 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();
}