From 3c349f68bc59e2a9dc50ebdff376a171b7e35a15 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Fri, 7 Mar 2014 04:05:31 +0100 Subject: [PATCH] added random string to tmp-file path to avoid collisions during simultaneous uploads from multiple devices --- src/KeePassLib2Android/Serialization/FileTransactionEx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KeePassLib2Android/Serialization/FileTransactionEx.cs b/src/KeePassLib2Android/Serialization/FileTransactionEx.cs index 46a07f56..2265d198 100644 --- a/src/KeePassLib2Android/Serialization/FileTransactionEx.cs +++ b/src/KeePassLib2Android/Serialization/FileTransactionEx.cs @@ -71,7 +71,7 @@ namespace KeePassLib.Serialization if(m_bTransacted) { m_iocTemp = m_iocBase.CloneDeep(); - m_iocTemp.Path += StrTempSuffix; + m_iocTemp.Path += "."+new PwUuid(true).ToHexString().Substring(0,6)+ StrTempSuffix; } else m_iocTemp = m_iocBase; }