]> git.sur5r.net Git - bacula/bacula/commitdiff
Print error message if no Changer Command found.
authorKern Sibbald <kern@sibbald.com>
Sat, 22 Oct 2005 15:05:35 +0000 (15:05 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 22 Oct 2005 15:05:35 +0000 (15:05 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2474 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/kes-1.37
bacula/src/stored/autochanger.c

index bf65169a893a54e2f5b80ddec09693d978b722cb..b225365d17ec57e68294b0400e947783a8099ad5 100644 (file)
@@ -50,11 +50,16 @@ Document:
 - Does WildFile match against full name?  Doc.
 
 For 1.39:
+<<<<<<< kernstodo
+- Add binary tree search for tree routines.
+- Eliminate use of column positions in wx-console.
+=======
 - Add a new Autochanger directive "Global lock = yes|no"
   that provides a global lock on calling mtx-changer so
   that multiple autochanger definitions can reference
   the same physical autochanger.
 - Look at -D_FORTIFY_SOURCE=2
+>>>>>>> 1.576
 - Close STDOUT if debug_level == 0
 - Add recycle event.
 - Add scratch pool event.
index 3245aac82c61ae31f0dbac5a282f9a9b2fdc7fc1..010f5dc93958963fb54df9a28db08c9852386a92 100644 (file)
@@ -5,6 +5,7 @@ General:
 
 Changes to 1.37.41:
 22Oct05
+- Print error message if no Changer Command found.
 - Apply fix from Martin Simmons to clear structure before
   using it in IPADDR -- fixes a bind() bug on AIX.
 14Oct05
index a87840e1e0224e4811c51e9112824e0daaf113f1..a1e49d18051fc73a8a6c208f00aa183038eec6c6 100644 (file)
@@ -148,6 +148,11 @@ int get_autochanger_loaded_slot(DCR *dcr)
    uint32_t timeout = dcr->device->max_changer_wait;
    int drive = dcr->dev->drive_index;
 
+   if (!dcr->device->changer_command) {
+      Jmsg(jcr, M_FATAL, 0, _("3992 Missing Changer command.\n"));
+      return -1;
+   }
+
    results = get_pool_memory(PM_MESSAGE);
    changer = get_pool_memory(PM_FNAME);