removed false warning that come up when openning a non existing file in ftFileCreator.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6896 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-11-07 21:17:18 +00:00
parent c9cf757187
commit 3f09bdb0b7

View File

@ -265,11 +265,13 @@ int ftFileCreator::locked_initializeFileAttrs()
if (!fd) if (!fd)
{ {
#ifdef FILE_DEBUG
std::cerr << "ftFileCreator::initializeFileAttrs() Failed to open (r+b): "; std::cerr << "ftFileCreator::initializeFileAttrs() Failed to open (r+b): ";
std::cerr << file_name << ", errno = " << errno << std::endl; std::cerr << file_name << ", errno = " << errno << std::endl;
std::cerr << "ftFileCreator::initializeFileAttrs() opening w+b"; std::cerr << "ftFileCreator::initializeFileAttrs() opening w+b";
std::cerr << std::endl; std::cerr << std::endl;
#endif
/* try opening for write */ /* try opening for write */
fd = RsDirUtil::rs_fopen(file_name.c_str(), "w+b"); fd = RsDirUtil::rs_fopen(file_name.c_str(), "w+b");