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-3.0.0~182 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84878d10a48c31f3302314dbbcf0e5b66f837bf0;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;