TFTPClient.sendFile doesn't work in binary mode
-----------------------------------------------
Key: NET-233
URL: https://issues.apache.org/jira/browse/NET-233
Project: Commons Net
Issue Type: Bug
Affects Versions: 1.4
Environment: [EMAIL PROTECTED] tftpd]# uname -a
Linux balexander-dev-env 2.6.9-34.ELsmp #1 SMP Thu Mar 9 06:23:23 GMT 2006
x86_64 x86_64 x86_64 GNU/Linux
Reporter: Bill Alexander
The TFTPClient class won't send a file in binary mode.
To reproduce:
1. Compile examples.tftp
2. java -cp <classpath> examples.tftp -s -b 192.168.35.239 virt_shell.sh.gz
virt_shell.sh.gz
tftp program ends without error.
The file virt_shell.sh.gz shows up on the destination host, but has zero bytes.
The following messages are generated by tftpd (which has the -v option turned
on).
Sep 9 10:59:08 balexander-dev-env in.tftpd[3266]: WRQ from 192.168.35.55
filename virt_shell.sh.gz
Sep 9 10:59:09 balexander-dev-env in.tftpd[3266]: tftpd: read: Connection
refused
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.