From: Eric Bollengier Date: Fri, 29 Nov 2024 17:05:27 +0000 (+0100) Subject: Fix #11251 About bcopy not mounting correctly volumes provided with -i option X-Git-Tag: Release-15.0.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3afebb5663555c8006e044a07aa84510f0155ce5;p=thirdparty%2Fbacula.git Fix #11251 About bcopy not mounting correctly volumes provided with -i option --- diff --git a/bacula/src/stored/butil.c b/bacula/src/stored/butil.c index 34403ab42..192b1aa33 100644 --- a/bacula/src/stored/butil.c +++ b/bacula/src/stored/butil.c @@ -186,9 +186,8 @@ static DCR *setup_to_access_device(JCR *jcr, char *dev_name, } bstrncpy(dcr->dev_name, device->device_name, sizeof(dcr->dev_name)); - create_restore_volume_list(jcr, true); - if (!writing) { /* read only access? */ + create_restore_volume_list(jcr, true); Dmsg0(100, "Acquire device for read\n"); if (!acquire_device_for_read(dcr, retry_count)) { return NULL;