From: Jason Boyer Date: Thu, 7 Apr 2016 16:08:09 +0000 (-0400) Subject: LP1567514 - Don't Output Null Byte for Spool Files X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8268d130146b9b2a90dc05dadc1ced9989b6e5aa;p=working%2FEvergreen.git 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 --- 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