]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #2300 mount/unmount/release of single tape drive does not work
authorKern Sibbald <kern@sibbald.com>
Thu, 3 Aug 2017 19:15:08 +0000 (21:15 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 3 Aug 2017 19:16:03 +0000 (21:16 +0200)
bacula/src/dird/ua_cmds.c

index 9f2a8324214d84ab12fca78f9bec961f72f87f2c..d710c236eb8f7fa7b7c21eeb49d8c3c323f6cf64 100644 (file)
@@ -1743,9 +1743,6 @@ static void do_storage_cmd(UAContext *ua, const char *command)
    } else {
       slot = get_storage_slot(ua, store.store);
    }
-   if (slot < 0) {
-      return;
-   }
    /* Users may set a device name directly on the command line */
    if ((i = find_arg_with_value(ua, "device")) > 0) {
       POOLMEM *errmsg = get_pool_memory(PM_NAME);