[Bug 7506] New: ftp to remote server does short writes

Wine Bugs wine-bugs at winehq.org
Tue Feb 20 19:40:37 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=7506

           Summary: ftp to remote server does short writes
           Product: Wine
           Version: 0.9.22.
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-binary
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: dougm at bravoecho.net


In Linux, I ran:

wine ftp.exe  -d  -s:fc2  winpc

where ftp.exe is the Windows XP ftp client.  The fc2 command-file specifies
login and pw, and a file to send. 

Here is the output:

Connected to winpc.
220 Welcome to Quick 'n Easy FTP Server
User (winpc:(none)): --->
USER dmcc
331 Password required for dmcc
--->
PASS jjj
230 User successfully logged in.
ftp> ---> bin
TYPE I
200 Type set to BINARY
ftp> fixme:winsock:WS_setsockopt (96,SOL_SOCKET,SO_DEBUG,0x32f1dc(1)) attempted
(is privileged). Ignoring.
---> put mm
PORT 172,20,30,123,149,192
200 Port command successful.
---> STOR mm
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete
ftp: 136740 bytes sent in 0.00Seconds 136740000.00Kbytes/sec.
ftp> ---> bye
QUIT
221 Bye

The client-side mm file is 143KB, but the resulting server-side file is only
23KB.  You can see the fixme message above, not sure if that's relevant.

Another example, using qftp.exe from http://nbpfaus.net/~pfau/ftplib/:

wine qftp.exe  send -v 9 winpc -l dmcc -p jjj  mm
220 Welcome to Quick 'n Easy FTP Server
USER dmcc
331 Password required for dmcc
PASS jjj
230 User successfully logged in.
TYPE I
200 Type set to BINARY
PASV
227 Entering Passive Mode (172,20,30,112,4,0)
STOR mm
150 Opening BINARY mode data connection for file transfer.
short write: passed 8192, wrote 5792
226 Transfer complete
ftp error
226 Transfer complete

Here the client shows an error message about the write.  The resulting server
file is only 14KB in this case.  

When I run these ftp client commands in Windows, they work fine.  When I run the
Linux ftp client to the same server, it works fine.  There are no firewalls or
other restrictions in place.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list