]> git.sur5r.net Git - bacula/bacula/commitdiff
Prevent bls from printing binary data when a plugin stream
authorKern Sibbald <kern@sibbald.com>
Sat, 7 Mar 2009 21:19:49 +0000 (21:19 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 7 Mar 2009 21:19:49 +0000 (21:19 +0000)
     encountered. This fixes bug #1238

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8510 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/bls.c

index 5f4117de69ce2d146d75c3639703d63c2a00b715..ac881fba80b611cd9e00b953b5dcd82eba6f7400 100644 (file)
@@ -407,7 +407,9 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec)
          num_files++;
       }
    } else if (rec->Stream == STREAM_PLUGIN_NAME) {
-      Pmsg0(000, "Plugin stream\n");
+      if (strncmp("0 0", rec->data, 3) != 0) {
+         Pmsg1(000, "Plugin data: %s\n", rec->data);
+      }
    }
       
    return true;