diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 21:58:40 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 21:58:40 +0000 |
commit | a436702cdf84264e1176548a4dd0f78f8eeb123a (patch) | |
tree | 4a3b507d924f3317baf512af7b4203fb038dce18 /lib/backupclient/BackupClientRestore.cpp | |
parent | 18b71f8cbbdf85907a9e204b9e9f2d056ac43419 (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.cpp | 4 |
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; |