fix DontShare.sig not being written the first time a profile is saved
This commit is contained in:
@@ -687,6 +687,9 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const
|
|||||||
CString sStatsXmlSigFile = fn+SIGNATURE_APPEND;
|
CString sStatsXmlSigFile = fn+SIGNATURE_APPEND;
|
||||||
CryptManager::SignFileToFile(fn, sStatsXmlSigFile);
|
CryptManager::SignFileToFile(fn, sStatsXmlSigFile);
|
||||||
|
|
||||||
|
// Update file cache, or else IsAFile in CryptManager won't see sStatsXmlSigFile.
|
||||||
|
FILEMAN->FlushDirCache( sDir );
|
||||||
|
|
||||||
// Save the "don't share" file
|
// Save the "don't share" file
|
||||||
CString sDontShareFile = sDir + DONT_SHARE_SIG;
|
CString sDontShareFile = sDir + DONT_SHARE_SIG;
|
||||||
CryptManager::SignFileToFile(sStatsXmlSigFile, sDontShareFile);
|
CryptManager::SignFileToFile(sStatsXmlSigFile, sDontShareFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user