]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix additional problems with VSS backup that I introduced.
authorKern Sibbald <kern@sibbald.com>
Sat, 23 Jul 2005 09:45:26 +0000 (09:45 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 23 Jul 2005 09:45:26 +0000 (09:45 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2237 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kes-1.37
bacula/src/version.h
bacula/src/win32/compat/vss.cpp

index 4835db30b17930661cfdc0bc9d8fdee09314eadf..690a3262e7dfebf3999e07b9875337bab795f375 100644 (file)
@@ -3,6 +3,9 @@
 
 General:
 
+Changes to 1.37.32:
+23Jul05
+- Fix additional problems with VSS backup that I introduced.
 Changes to 1.37.31:
 22Jul05
 - Correct compiler complaints in wx-console and tray-monitor.
index 33196a4bd57e125956774eedaaf4cb4863c29e25..cc7c654a44a39071d35e507436ba728e6c9b4b1f 100644 (file)
@@ -1,6 +1,6 @@
 /* */
 #undef  VERSION
-#define VERSION "1.37.31"
+#define VERSION "1.37.32"
 #define BDATE   "22 July 2005"
 #define LSMDATE "22Jul05"
 
index e59e5e5ea273d0def2285b4a62d5e316480678fc..5fc878adf77604749f69b8df30bc8c2826d15733 100644 (file)
@@ -1,4 +1,4 @@
-//                              -*- Mode: C++ -*-
+
 // vss.cpp -- Interface to Volume Shadow Copies (VSS)
 //
 // Copyright transferred from MATRIX-Computer GmbH to
@@ -113,18 +113,19 @@ BOOL VSSClient::InitializeForBackup()
 
 
 
-BOOL VSSClient::GetShadowPath (const char *szFilePath, char *szShadowPath, int nBuflen)
+BOOL VSSClient::GetShadowPath(const char *szFilePath, char *szShadowPath, int nBuflen)
 {
    if (!m_bBackupIsInitialized)
       return FALSE;
 
-   /* check for valid pathname -- note, allow simple drive letter too */
+   /* check for valid pathname */
    BOOL bIsValidName;
    
-   bIsValidName = strlen(szFilePath) >= 2;
+   bIsValidName = strlen(szFilePath) > 3;
    if (bIsValidName)
       bIsValidName &= isalpha (szFilePath[0]) &&
-                      szFilePath[1]==':';
+                      szFilePath[1]==':' && 
+                      szFilePath[2] == '\\';
 
    if (bIsValidName) {
       int nDriveIndex = toupper(szFilePath[0])-'A';