[Box Backup-dev] COMMIT r514 - box/chris/general/bin/bbackupquery
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sun Feb 26 00:26:28 GMT 2006
Author: chris
Date: 2006-02-26 00:26:26 +0000 (Sun, 26 Feb 2006)
New Revision: 514
Modified:
box/chris/general/bin/bbackupquery/BackupQueries.cpp
Log:
* BackupQueries.cpp
- Unix compile fix
- Detect and report failed restore due to parent directory of restore target
not existing
Modified: box/chris/general/bin/bbackupquery/BackupQueries.cpp
===================================================================
--- box/chris/general/bin/bbackupquery/BackupQueries.cpp 2006-02-26 00:25:44 UTC (rev 513)
+++ box/chris/general/bin/bbackupquery/BackupQueries.cpp 2006-02-26 00:26:26 UTC (rev 514)
@@ -863,7 +863,7 @@
if(!ConvertConsoleToUtf8(args[0].c_str(), fileName))
return;
#else
- const std::string& fileName(args[0]);
+ std::string fileName(args[0]);
#endif
if(!opts['i'])
@@ -1756,6 +1756,12 @@
printf("The target directory exists. You cannot restore over an existing directory.\n");
break;
+ case Restore_TargetPathNotFound:
+ printf("The target directory path does not exist.\n"
+ "To restore to a directory whose parent "
+ "does not exist, create the parent first.\n");
+ break;
+
default:
printf("ERROR: Unknown restore result.\n");
break;
More information about the Boxbackup-dev
mailing list