From 7e050a8fb9083f1375d27d4f006d2d02674fcf3d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 3 Aug 2017 21:15:08 +0200 Subject: [PATCH] Fix bug #2300 mount/unmount/release of single tape drive does not work --- bacula/src/dird/ua_cmds.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 9f2a832421..d710c236eb 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -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); -- 2.39.2