summaryrefslogtreecommitdiff
path: root/lib/common/Utils.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-09-18 20:28:58 +0000
committerChris Wilson <chris+github@qwirx.com>2014-09-18 20:28:58 +0000
commitf244fb5f61f764ab2aff76b0b1b9d85e8ea1e751 (patch)
tree2d647f99e09ae631cfd91fd3c7b76e3c378578ef /lib/common/Utils.h
parent172fcf113f39d79b074f0c28f30aa96329a7390a (diff)
Fix inability to access locations starting with a slash.
Thanks to Jean-Yves Moulin for reporting this issue. When bbackupd is configured to create locations whose names contain a slash, it was impossible to escape it, and thus to enter the directory in bbackupquery to inspect or restore it.
Diffstat (limited to 'lib/common/Utils.h')
-rw-r--r--lib/common/Utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/Utils.h b/lib/common/Utils.h
index 3134245a..636fb487 100644
--- a/lib/common/Utils.h
+++ b/lib/common/Utils.h
@@ -17,7 +17,7 @@
std::string GetBoxBackupVersion();
-void SplitString(const std::string &String, char SplitOn, std::vector<std::string> &rOutput);
+void SplitString(std::string String, char SplitOn, std::vector<std::string> &rOutput);
#ifdef SHOW_BACKTRACE_ON_EXCEPTION
void DumpStackBacktrace();