LP#1667835: avoid edi_fetcher.pl crash upon fetching zero-length file user/gmcharlt/lp1667835_edi_fetcher_meets_zero
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 24 Feb 2017 23:04:29 +0000 (18:04 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 24 Feb 2017 23:04:29 +0000 (18:04 -0500)
commitc2d9fb809fc8822e91cfabffd2842addcfff83c7
treeb2bef10064fe0edc5bb2aa556f73dff93885355a
parent4b163210e0e043f7df5a2c4f831dda0432e495a7
LP#1667835: avoid edi_fetcher.pl crash upon fetching zero-length file

This patch fixes an issue that could cause edi_fetcher.pl to crash
if the EDI partner supplies a zero-length file for Net::FTP to
download; such files are now skipped.

Testing would entail setting up an FTP server that contains a
zero-length file, then setting up an EDI remote account and
using edi_fetcher.pl to try to retrieve the file.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Utils/RemoteAccount.pm