From: Kern Sibbald Date: Sat, 7 Mar 2009 21:19:49 +0000 (+0000) Subject: Prevent bls from printing binary data when a plugin stream X-Git-Tag: Release-7.0.0~3334 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=425aa915c46595a8f6ad1f0f94622abcdab8298e;p=bacula%2Fbacula Prevent bls from printing binary data when a plugin stream encountered. This fixes bug #1238 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8510 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/bls.c b/bacula/src/stored/bls.c index 5f4117de69..ac881fba80 100644 --- a/bacula/src/stored/bls.c +++ b/bacula/src/stored/bls.c @@ -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;