]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/findlib/find.c
Allow plugins to add drives to vss snapshot
[bacula/bacula] / bacula / src / findlib / find.c
index 291fd050ecb2f111990d0ee6253885cd31f8f125..3c60f95219e9b06cecb8cba670ddb02f3581019e 100644 (file)
@@ -121,10 +121,14 @@ get_win32_driveletters(FF_PKT *ff, char* szDrives)
 #if !defined(HAVE_WIN32)
    return 0;
 #endif
+   int nCount;
+   /* Can be already filled by plugin, so check that everything
+    * is on upper case. TODO: can check for dupplicate?
+    */
+   for (nCount = 0; nCount < 27 && szDrives[nCount] ; nCount++) {
+      szDrives[nCount] = toupper(szDrives[nCount]);
+   }
 
-   szDrives[0] = 0; /* make empty */
-   int nCount = 0;
-    
    findFILESET *fileset = ff->fileset;
    if (fileset) {
       int i;