added random string to tmp-file path to avoid collisions during simultaneous uploads from multiple devices

This commit is contained in:
Philipp Crocoll 2014-03-07 04:05:31 +01:00
parent 736bbd5ec3
commit 3c349f68bc

View File

@ -71,7 +71,7 @@ namespace KeePassLib.Serialization
if(m_bTransacted) if(m_bTransacted)
{ {
m_iocTemp = m_iocBase.CloneDeep(); 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; else m_iocTemp = m_iocBase;
} }