]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove Device from show command as it is not used or updated
authorKern Sibbald <kern@sibbald.com>
Sat, 16 Feb 2013 15:22:17 +0000 (16:22 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:08 +0000 (14:51 +0200)
bacula/src/dird/ua_output.c

index d7e93d0795062f8a5e2e5ac08d188140f41b9abe..adef8a52646b150f9b65d65e7763cd62fca5aa5e 100644 (file)
@@ -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: