From: Eric Bollengier Date: Thu, 2 Nov 2023 12:33:19 +0000 (+0100) Subject: Fix #10513 About show command issue with incorrect storage configuration X-Git-Tag: Beta-15.0.1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170d72687a0188a02683dbcc00cd9ec40424c68c;p=thirdparty%2Fbacula.git Fix #10513 About show command issue with incorrect storage configuration --- diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index 1626690b7..3463cb434 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -1146,13 +1146,11 @@ void dump_resource(int type, RES *ares, void sendit(void *sock, const char *fmt, shstore?shstore->name():"*none*"); } if (res->res_store.changer && res->res_store.changer != &res->res_store) { - sendit(sock, _(" Parent --> ")); - dump_resource(-R_STORAGE, (RES *)res->res_store.changer, sendit, sock); + sendit(sock, _(" Parent=%s\n"), res->res_store.changer->hdr.name); } - if (recurse && res->res_store.shared_storage && + if (res->res_store.shared_storage && res->res_store.shared_storage != &res->res_store) { - sendit(sock, _(" Shared --> ")); - dump_resource(-R_STORAGE, (RES *)res->res_store.shared_storage, sendit, sock); + sendit(sock, _(" Shared=%s\n"), res->res_store.shared_storage->hdr.name); } break;