From 8268d130146b9b2a90dc05dadc1ced9989b6e5aa Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Thu, 7 Apr 2016 12:08:09 -0400 Subject: [PATCH] LP1567514 - Don't Output Null Byte for Spool Files If a spool file is defined on the marc_stream_importer.pl command line, no null byte is output after the record(s) are processed. Signed-off-by: Jason Boyer --- Open-ILS/src/support-scripts/marc_stream_importer.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/support-scripts/marc_stream_importer.pl b/Open-ILS/src/support-scripts/marc_stream_importer.pl index f51e0ff6fb..b6c51cbc8f 100755 --- a/Open-ILS/src/support-scripts/marc_stream_importer.pl +++ b/Open-ILS/src/support-scripts/marc_stream_importer.pl @@ -492,7 +492,7 @@ sub process_file { $msg .= "Successfully imported $imported $cur_rec_type records ". "using merge profile '$profile'\n" if $imported; $msg .= "Failed to import $failed $cur_rec_type records\n" if $failed; - $msg .= "\x00"; + $msg .= "\x00" unless $spoolfile; print $msg; clear_auth_token(); # logout -- 2.11.0