diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-09-18 20:28:58 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-09-18 20:28:58 +0000 |
commit | f244fb5f61f764ab2aff76b0b1b9d85e8ea1e751 (patch) | |
tree | 2d647f99e09ae631cfd91fd3c7b76e3c378578ef /lib/common/Utils.h | |
parent | 172fcf113f39d79b074f0c28f30aa96329a7390a (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.h | 2 |
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(); |