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-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ebd7479ce00e6e60ca5c1f97d78c5a2ba6aa625f;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: