]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak make alignment same as Enterprise
authorKern Sibbald <kern@sibbald.com>
Sat, 14 Jul 2018 17:19:54 +0000 (19:19 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 14 Jul 2018 17:19:54 +0000 (19:19 +0200)
bacula/src/dird/ua_cmds.c

index 8022f873799333d974c2bde111d076f86f54de3a..51052e36c034d25b64327811edd430c0d29682e0 100644 (file)
@@ -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);