From: Kern Sibbald Date: Sat, 16 Feb 2013 15:22:17 +0000 (+0100) Subject: Remove Device from show command as it is not used or updated X-Git-Tag: Release-7.0.0~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9bcf9fe6d8f299208c25bb44f094cc15e059a477;p=bacula%2Fbacula Remove Device from show command as it is not used or updated --- 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: