summaryrefslogtreecommitdiff
path: root/lib/backupclient/BackupClientRestore.cpp
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2020-05-10 19:17:17 -0400
committerReinhard Tartler <siretart@tauware.de>2020-05-10 19:17:17 -0400
commit228bc06db9e262b24a6c235b1e036cc8ef78565f (patch)
tree3703ceb787cf9345600fae3939afeccca7c47719 /lib/backupclient/BackupClientRestore.cpp
parentffb043c482053896b0190ea5ddc1cf2ba70cb4f0 (diff)
parentc5c04da3823c36f03408821cbc5019ec18613922 (diff)
Diffstat (limited to 'lib/backupclient/BackupClientRestore.cpp')
-rw-r--r--lib/backupclient/BackupClientRestore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/backupclient/BackupClientRestore.cpp b/lib/backupclient/BackupClientRestore.cpp
index d3300604..295a4252 100644
--- a/lib/backupclient/BackupClientRestore.cpp
+++ b/lib/backupclient/BackupClientRestore.cpp
@@ -277,7 +277,7 @@ static int BackupClientRestoreDir(BackupProtocolCallable &rConnection,
"out of the way of restored directory. "
"Use specific restore with ID to "
"restore this object.");
- if(::unlink(rLocalDirectoryName.c_str()) != 0)
+ if(EMU_UNLINK(rLocalDirectoryName.c_str()) != 0)
{
BOX_LOG_SYS_ERROR("Failed to delete "
"file '" <<
@@ -513,7 +513,7 @@ static int BackupClientRestoreDir(BackupProtocolCallable &rConnection,
// files already there.
if(ObjectExists(localFilename)
!= ObjectExists_NoObject &&
- ::unlink(localFilename.c_str()) != 0)
+ EMU_UNLINK(localFilename.c_str()) != 0)
{
BOX_LOG_SYS_ERROR("Failed to delete "
"file '" << localFilename <<
@@ -912,7 +912,7 @@ int BackupClientRestore(BackupProtocolCallable &rConnection,
}
// Delete the resume information file
- ::unlink(params.mRestoreResumeInfoFilename.c_str());
+ EMU_UNLINK(params.mRestoreResumeInfoFilename.c_str());
return params.ContinuedAfterError ? Restore_CompleteWithErrors
: Restore_Complete;