From 1a0dcd186b7cf37f6e9f2ebaab5e129f8e369ef3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 21 Dec 2008 08:44:43 +0000 Subject: [PATCH] ebl Display copies only if "copies" keyword is used git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8213 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_restore.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 90eeb5184a..2e55a40405 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -1268,8 +1268,11 @@ static bool select_backups_before_date(UAContext *ua, RESTORE_CTX *rx, char *dat } if (rx->JobIds[0] != 0) { - /* Display a list of all copies */ - db_list_copies_records(ua->jcr, ua->db, 0, rx->JobIds, prtit, ua, HORZ_LIST); + if (find_arg(ua, NT_("copies")) > 0) { + /* Display a list of all copies */ + db_list_copies_records(ua->jcr, ua->db, 0, rx->JobIds, + prtit, ua, HORZ_LIST); + } /* Display a list of Jobs selected for this restore */ db_list_sql_query(ua->jcr, ua->db, uar_list_temp, prtit, ua, 1, HORZ_LIST); ok = true; -- 2.39.5