summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-10-11 15:39:25 +0300
committerTor Lillqvist <tml@collabora.com>2018-10-11 17:06:15 +0300
commitf340ddd7371938333092e0cca4fc035762872340 (patch)
tree27a86392d7579b1a1615aab45ed76bc9b66a5a57 /sal
parent5f438ebe0824f04d08ddf2b39d7f5e02325f2ce3 (diff)
Add SAL_INFO for the open() call in oslDoCopyFile()
Change-Id: I1fde453d5d37481aedec152a1a4da8a85fc6c99b
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file_misc.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index 2bc713dfd9c6..60ba5088359d 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -964,9 +964,12 @@ static int oslDoCopyFile(const sal_Char* pszSourceFileName, const sal_Char* pszD
if ( DestFileFD < 0 )
{
nRet=errno;
+ SAL_INFO("sal.file", "open(" << pszDestFileName << ",O_WRONLY|O_CREAT," << std::oct << mode << std::dec << "): errno " << nRet << ": " << strerror(nRet));
osl_closeFile(SourceFileFH);
return nRet;
}
+ else
+ SAL_INFO("sal.file", "open(" << pszDestFileName << ",O_WRONLY|O_CREAT," << std::oct << mode << std::dec << "): OK");
size_t nRemains = nSourceSize;