grrr Fix up for the return type of LL internal file copy returning bool

Beq 2018-11-08 10:26:41 +00:00
parent 22c7655573
commit 1618e7a9dd
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ int LLFile::rename(const std::string& filename, const std::string& newname, int
LL_INFOS("LLFile") << "Rename failure (" << error_number << ") - " << filename << " to " << newname << LL_ENDL;
if (EXDEV == error_number)
{
if (copy(filename, newname) == 0)
if (copy(filename, newname)==true) // sigh in their wisdom LL decided that copy returns bool true not 0 whjen no error. using == true to make that clear.
{
LL_INFOS("LLFile") << "Rename across mounts not supported; copying+unlinking the file instead." << LL_ENDL;
rc = LLFile::remove(filename);