From 884eab04e4f998bab5d93a34bceed3dec72a7295 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 14 Jul 2018 19:19:54 +0200 Subject: [PATCH] Tweak make alignment same as Enterprise --- bacula/src/dird/ua_cmds.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 8022f8737..51052e36c 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1804,8 +1804,10 @@ static void do_storage_cmd(UAContext *ua, const char *command) pm_strcpy(store.store_source, _("unknown source")); set_wstorage(jcr, &store); drive = get_storage_drive(ua, store.store); - /* For the disable/enable command, the slot is not mandatory */ - if (strcasecmp(command, "disable") == 0 || strcasecmp(command, "enable") == 0) { + /* For the disable/enable/unmount commands, the slot is not mandatory */ + if (strcasecmp(command, "disable") == 0 || + strcasecmp(command, "enable") == 0 || + strcasecmp(command, "unmount") == 0) { slot = 0; } else { slot = get_storage_slot(ua, store.store); -- 2.47.3