From 84878d10a48c31f3302314dbbcf0e5b66f837bf0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 7 Mar 2009 21:19:49 +0000 Subject: [PATCH] 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 --- bacula/src/stored/bls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5