From 48698adb7bb8e2e92570f22df6ab7fbcaa9b3169 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. To test: [1] Use marc_stream_importer.pl to import a record from a file; verify that the output messages do not include a null character. Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton --- 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 670e8c7739..412d46646d 100755 --- a/Open-ILS/src/support-scripts/marc_stream_importer.pl +++ b/Open-ILS/src/support-scripts/marc_stream_importer.pl @@ -494,7 +494,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.43.2