Alon Bar-Lev created SSHD-588:
---------------------------------
Summary: sshd removes CR from input stream
Key: SSHD-588
URL: https://issues.apache.org/jira/browse/SSHD-588
Project: MINA SSHD
Issue Type: Bug
Affects Versions: 1.1.0
Environment: $ java -version
openjdk version "1.8.0_60"
OpenJDK Runtime Environment (IcedTea 3.0.0pre06+ra9817b9f8a21) (Gentoo
icedtea-3.0.0_pre06)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)
Reporter: Alon Bar-Lev
Attachments: SSHD.java
1. start SSHD (attached)
2. create /tmp/a1:
line1
line2
3. unix2dos /tmp/a1
4. send it to remote:
$ ssh -p @PORT@ root@localhost "cat > /tmp/a2" < /tmp/a1
3. examine result:
$ ls -la /tmp/a1 /tmp/a2
-rw-r--r-- 1 alonbl alonbl 14 Nov 16 12:50 /tmp/a1
-rw-r--r-- 1 alonbl alonbl 12 Nov 16 12:51 /tmp/a2
4. notice size differs, CR were removed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)