]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dircmd.c
Fix watchdog deadlog + restore soft link bug
[bacula/bacula] / bacula / src / stored / dircmd.c
index 6cd627f03b594069d3aa886563347671265db61d..5cef5693e4fa099d344e175ee9169c9eb8ab22a3 100644 (file)
@@ -781,12 +781,8 @@ static int readlabel_cmd(JCR *jcr)
 
         P(dev->mutex);               /* Use P to avoid indefinite block */
         if (!dev_state(dev, ST_OPENED)) {
-           if (open_dev(dev, NULL, READ_WRITE) < 0) {
-               bnet_fsend(dir, _("3994 Connot open device: %s\n"), strerror_dev(dev));
-           } else {
-              read_volume_label(jcr, dev, Slot);
-              force_close_dev(dev);
-           }
+           read_volume_label(jcr, dev, Slot);
+           force_close_dev(dev);
          /* Under certain "safe" conditions, we can steal the lock */
         } else if (dev->dev_blocked && 
                    (dev->dev_blocked == BST_UNMOUNTED ||