mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missing BIN_FLAGS_WRITABLE
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6106309a3d
commit
2bf79b663d
@ -152,7 +152,7 @@ void p3ConfigMgr::saveConfiguration()
|
||||
BinMemInterface *membio = new BinMemInterface(1000, bioflags);
|
||||
RsSerialiser *rss = new RsSerialiser();
|
||||
rss->addSerialType(new RsGeneralConfigSerialiser());
|
||||
pqistore store(rss, "CONFIG", membio, 0);
|
||||
pqistore store(rss, "CONFIG", membio, BIN_FLAGS_WRITEABLE);
|
||||
|
||||
store.SendItem(item);
|
||||
|
||||
@ -170,7 +170,7 @@ void p3ConfigMgr::saveConfiguration()
|
||||
if (!membio->writetofile(filename2.c_str()))
|
||||
{
|
||||
#ifdef CONFIG_DEBUG
|
||||
std::cerr << "p3ConfigMgr::saveConfiguration() Failed to Write MetaFile";
|
||||
std::cerr << "p3ConfigMgr::saveConfiguration() Failed to Write MetaFile " << filename2 ;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
}
|
||||
@ -183,7 +183,7 @@ void p3ConfigMgr::saveConfiguration()
|
||||
if (!signbio->writetofile(filename1.c_str()))
|
||||
{
|
||||
#ifdef CONFIG_DEBUG
|
||||
std::cerr << "p3ConfigMgr::saveConfiguration() Failed to Write MetaSignFile";
|
||||
std::cerr << "p3ConfigMgr::saveConfiguration() Failed to Write MetaSignFile" << filename1 ;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
}
|
||||
@ -259,7 +259,8 @@ void p3ConfigMgr::loadConfiguration()
|
||||
std::cerr << "p3ConfigMgr::loadConfiguration() Failed to Load MetaFile";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
delete membio;
|
||||
// delete membio;
|
||||
// return ;
|
||||
}
|
||||
|
||||
/* get signature */
|
||||
|
Loading…
Reference in New Issue
Block a user