Why does per Net-FTP incorrectly translate text files to NVT when using ASCII transfer mode?

Solution Verified - Updated -

Issue

  • Transferring a unix text file via ftp with the perl Net:FTP module in ASCII mode leads to incorrect data in the transferred file when the source file contains 2 or more consecutive blank lines due to an incorrect transformation of source data from unix text format to the Network Virtual Terminal (NVT) data format.

Environment

  • Red Hat Enterprise Linux 6.6
  • perl-5.10.1-136.el6_6.1.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.