From 1618e7a9ddcf75ced5bdeae6487737e72d74704c Mon Sep 17 00:00:00 2001 From: Beq Date: Thu, 8 Nov 2018 10:26:41 +0000 Subject: [PATCH] grrr Fix up for the return type of LL internal file copy returning bool --- indra/llcommon/llfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcommon/llfile.cpp b/indra/llcommon/llfile.cpp index ce0d87ae05..1fb3f2f381 100644 --- a/indra/llcommon/llfile.cpp +++ b/indra/llcommon/llfile.cpp @@ -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);