summaryrefslogtreecommitdiff
path: root/lib/backupclient/BackupClientRestore.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-02-02 22:20:29 +0000
committerChris Wilson <chris+github@qwirx.com>2012-02-02 22:20:29 +0000
commit36996b60ac2f41ab70832db6bd02469d9a617fec (patch)
tree022e1324a323936ade55db1f5affee616fda77a8 /lib/backupclient/BackupClientRestore.cpp
parentd73d72cc1518bba09d6966794f871c4ad88dbf5f (diff)
Force all options to be present to BackupClientRestore(), to fix
misinterpretation of char * arguments as bools. Use macros to simplify test code. Test that locations not present when bbackupd started will be detected and backed up if subsequently created.
Diffstat (limited to 'lib/backupclient/BackupClientRestore.cpp')
-rw-r--r--lib/backupclient/BackupClientRestore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backupclient/BackupClientRestore.cpp b/lib/backupclient/BackupClientRestore.cpp
index 43ad73f3..db72c4bd 100644
--- a/lib/backupclient/BackupClientRestore.cpp
+++ b/lib/backupclient/BackupClientRestore.cpp
@@ -841,8 +841,8 @@ static int BackupClientRestoreDir(BackupProtocolClient &rConnection,
//
// --------------------------------------------------------------------------
int BackupClientRestore(BackupProtocolClient &rConnection,
- int64_t DirectoryID, const char *RemoteDirectoryName,
- const char *LocalDirectoryName, bool PrintDots, bool RestoreDeleted,
+ int64_t DirectoryID, const std::string& RemoteDirectoryName,
+ const std::string& LocalDirectoryName, bool PrintDots, bool RestoreDeleted,
bool UndeleteAfterRestoreDeleted, bool Resume,
bool ContinueAfterErrors)
{