From 9bcf9fe6d8f299208c25bb44f094cc15e059a477 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 16 Feb 2013 16:22:17 +0100 Subject: [PATCH] Remove Device from show command as it is not used or updated --- bacula/src/dird/ua_output.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_output.c b/bacula/src/dird/ua_output.c index d7e93d0795..adef8a5264 100644 --- a/bacula/src/dird/ua_output.c +++ b/bacula/src/dird/ua_output.c @@ -201,7 +201,10 @@ int show_cmd(UAContext *ua, const char *cmd) switch (type) { case -1: /* all */ for (j=r_first; j<=r_last; j++) { - dump_resource(j, res_head[j-r_first], bsendmsg, ua); + /* Skip R_DEVICE since it is really not used or updated */ + if (j != R_DEVICE) { + dump_resource(j, res_head[j-r_first], bsendmsg, ua); + } } break; case -2: -- 2.39.5