]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/label.c
Remove broken run when code
[bacula/bacula] / bacula / src / stored / label.c
index 746516cce57f7a39cb4609029581f5c418f6dcf4..e7fb9ee89f2b1cf90e90988728dcd3d9b14d067b 100644 (file)
@@ -321,8 +321,8 @@ bool write_new_volume_label_to_dev(DCR *dcr, const char *VolName,
       goto bail_out;
    }
 
-   if (relabel) {
-      dev->close_part(dcr);              /* make sure closed for rename */
+   if (relabel && !dev->is_tape()) {
+      dev->close_part(dcr);              /* make sure DVD/file closed for rename */
    }
 
    /* Set the new filename for open, ... */