From cc8cd28f4f66444f8e77c350c5dc64e2dc70af17 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 11 Oct 2018 15:43:06 +0300 Subject: Do the SAL_INFO() also in the special 'good' ENOENT case Change-Id: I66c3fb02f4c44adec5c8f663d8845658adfe803f --- sal/osl/unx/file_misc.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx index 60ba5088359d..307a0f81afc7 100644 --- a/sal/osl/unx/file_misc.cxx +++ b/sal/osl/unx/file_misc.cxx @@ -803,15 +803,15 @@ static oslFileError oslDoCopy(const sal_Char* pszSourceFileName, const sal_Char* tmpDestFile = rtl::OString(pszDestFileName) + ".osl-tmp"; if (rename(pszDestFileName, tmpDestFile.getStr()) != 0) { + int e = errno; + SAL_INFO("sal.file", "rename(" << pszDestFileName << ", " << tmpDestFile + << "): errno " << e << ": " << strerror(e)); if (errno == ENOENT) { DestFileExists = 0; } else { - int e = errno; - SAL_INFO("sal.file", "rename(" << pszDestFileName << ", " << tmpDestFile - << "): errno " << e << ": " << strerror(e)); return osl_File_E_EXIST; // for want of a better error code } } -- cgit