]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/askdir.c
Zero Slot if cannot mount volume
[bacula/bacula] / bacula / src / stored / askdir.c
index 7de73ada443e152cf6708e7d126be42098b5de57..469d605510ce136196cbf9266cd1b51de77d5d4b 100644 (file)
@@ -474,8 +474,7 @@ int dir_ask_sysop_to_mount_volume(JCR *jcr, DEVICE *dev)
        *   Slot for an autochanger, otherwise wait
        *   for the operator to mount the media.
        */
-      if ((jcr->VolumeName[0] && !dev_cap(dev, CAP_REM) && dev_cap(dev, CAP_LABEL)) ||
-         (jcr->VolumeName[0] && jcr->VolCatInfo.Slot)) {
+      if ((!dev_cap(dev, CAP_REM) && dev_cap(dev, CAP_LABEL)) || jcr->VolCatInfo.Slot) {
          Dmsg0(100, "Return 1 from mount without wait.\n");
         return 1;
       }