diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-10-11 15:43:06 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-10-11 17:06:15 +0300 |
commit | cc8cd28f4f66444f8e77c350c5dc64e2dc70af17 (patch) | |
tree | 20ccae95dfdca53daddf70361db473c1d7d0cd49 /sal | |
parent | f340ddd7371938333092e0cca4fc035762872340 (diff) |
Do the SAL_INFO() also in the special 'good' ENOENT case
Change-Id: I66c3fb02f4c44adec5c8f663d8845658adfe803f
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file_misc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 } } |