fix DontShare.sig not being written the first time a profile is saved

This commit is contained in:
Glenn Maynard
2004-06-06 05:17:12 +00:00
parent 6f7d0f5686
commit c37a29ac53
+3
View File
@@ -687,6 +687,9 @@ bool Profile::SaveAllToDir( CString sDir, bool bSignData ) const
CString sStatsXmlSigFile = fn+SIGNATURE_APPEND;
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
CString sDontShareFile = sDir + DONT_SHARE_SIG;
CryptManager::SignFileToFile(sStatsXmlSigFile, sDontShareFile);