From e3227328dc66f044bb4f7d22d53c09de05bc00df Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 4 Dec 2014 20:30:21 +0100 Subject: [PATCH] Correctly detect changes in root directories (such as C:\) on Windows. Bug was introduced with "Correctly backup root directory on Linux" (cherry picked from commit 9f2c974262876a871cacfadef05de51c504dcff2) --- urbackupclient/client.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/urbackupclient/client.cpp b/urbackupclient/client.cpp index a847a780..5ce30e93 100644 --- a/urbackupclient/client.cpp +++ b/urbackupclient/client.cpp @@ -132,11 +132,14 @@ std::wstring add_trailing_slash(const std::wstring &strDirName) { return strDirName+os_file_sep(); } - else + else if(strDirName.empty()) { return os_file_sep(); } - return strDirName; + else + { + return strDirName; + } } IndexThread::IndexThread(void)