summaryrefslogtreecommitdiff
path: root/lib/backupclient/BackupClientRestore.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-07-26 21:58:40 +0000
committerChris Wilson <chris+github@qwirx.com>2007-07-26 21:58:40 +0000
commita436702cdf84264e1176548a4dd0f78f8eeb123a (patch)
tree4a3b507d924f3317baf512af7b4203fb038dce18 /lib/backupclient/BackupClientRestore.cpp
parent18b71f8cbbdf85907a9e204b9e9f2d056ac43419 (diff)
Fix restoring to top-level directories (e.g. c:\test) (refs #3,
merges [1661])
Diffstat (limited to 'lib/backupclient/BackupClientRestore.cpp')
-rw-r--r--lib/backupclient/BackupClientRestore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/backupclient/BackupClientRestore.cpp b/lib/backupclient/BackupClientRestore.cpp
index 028c1659..9b3a3edc 100644
--- a/lib/backupclient/BackupClientRestore.cpp
+++ b/lib/backupclient/BackupClientRestore.cpp
@@ -311,6 +311,10 @@ static int BackupClientRestoreDir(BackupProtocolClient &rConnection, int64_t Dir
{
parentDirectoryName += '\\';
}
+ else if (lastSlash == 0)
+ {
+ parentDirectoryName += '\\';
+ }
#endif
int parentExists;